The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
Sponsored Content
Full Discussion:
what is $1
Top Forums
UNIX for Dummies Questions & Answers
what is $1
Post 302259671 by Corona688 on Tuesday 18th of November 2008 05:11:24 PM
11-18-2008
Corona688
Registered User
$1
is the first commandline argument. If you run
./asdf.sh a b c d e
, then
$1
will be a,
$2
will be b, etc. In shells with functions,
$1
may serve as the first function parameter, and so forth.
Corona688
View Public Profile for Corona688
Visit Corona688's homepage!
Find all posts by Corona688
Member Badges and Information Modal
×