Sponsored Content
Full Discussion: $#
Top Forums UNIX for Dummies Questions & Answers $# Post 340 by PxT on Monday 27th of November 2000 10:48:27 AM
Old 11-27-2000
$# is a shell variable which holds the number of arguments you passed to your shell script. So, if you ran:
myfile -r

Then $# would be set to 1. 'echo $#' would output '1' to the screen.



[Edited by Neo on 11-27-2000 at 11:59 PM]
 
All times are GMT -4. The time now is 05:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy