- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- what does $l means in a shell script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2009 10:21 AM
тАО05-08-2009 10:21 AM
Thanks
MSwift
Solved! Go to Solution.
- Tags:
- variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2009 10:28 AM
тАО05-08-2009 10:28 AM
SolutionA $l (lower case L) is probably just a variable of some sort. It has no special meaning to the shell.
If it is actually a $1 (the number 1), then that means the first argument on the from the execution of the script.
For example, if you execute:
# myscript.sh me too
Then $1=me and $2=too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2009 03:15 AM
тАО05-09-2009 03:15 AM
Re: what does $l means in a shell script
Most likely it is a shell variable (as , but it can depend from the context. With the dollar sign you can query the value of the variable like this:
# l=test
# echo $l
test
#
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2009 04:26 AM
тАО05-09-2009 04:26 AM
Re: what does $l means in a shell script
Dear Mswift
when u execute a shell program, u can include parametes on the command line. when u do, each parameters must be separated with bland like.
scopy saj1 saj2 saj3
where scopy is a shell program with three parameters
when the shell program runs, u can access the value of these parameters with positional parameters $0,$1, $2 etc..
and $1 is equl to saj1
$2 is equal to saj2
$3 is eqaul to saj3
and $0 is always the command name
here it is scopy.
thanks and regards
Sajjad Sahir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2009 01:00 AM
тАО05-11-2009 01:00 AM
Re: what does $l means in a shell script
unless it would be $1 in which case it got explained already by the others.
if it is $1 i suggest you use another font for your terminal so to not make this mistake in the future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2009 01:04 AM
тАО05-11-2009 01:04 AM
Re: what does $l means in a shell script
>>I wanted to know what does a $l (lower case L) means in a unix shell script?
Its depending upon your script can you post your script then we can be able to tell the meaning of your $l.
how you can use this see this below example
l=10
echo $l
10
suraj