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:
$#
Top Forums
UNIX for Dummies Questions & Answers
$#
Post 340 by PxT on Monday 27th of November 2000 10:48:27 AM
11-27-2000
PxT
Registered User
$# 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]
PxT
View Public Profile for PxT
Find all posts by PxT
Member Badges and Information Modal
×