Download What does $# mean in shell? - Unix & Linux Stack Exchange book pdf free download link or read online here in PDF. Read online What does $# mean in shell? - Unix & Linux Stack Exchange book pdf free download link book now. All books are in clear copy here, and all files are secure so don't worry about it. This site is like a library, you could find million book here by using search box in the header.
You can always check the man page of your shell. man bash says: Special Parameters # Expands to the number of positional parameters in decimal. Therefore a shell script can check how many parameters are given with code like this: if [ "$#" -eq 0 ]; then echo "you did not pass any parameter" fi
Read : What does $# mean in shell? - Unix & Linux Stack Exchange pdf book online Select one of servers for direct link: |
---|