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
Old 11-18-2008
$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.
 
All times are GMT -4. The time now is 03:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy