Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash terminal function display all arguments

# print all arguments:

 #!/bin/bash 
echo $@

# If you intend to do something with your arguments within a script:

#!/bin/bash 
for i; do 
  echo $i 
done
Source by linuxconfig.org #
 
PREVIOUS NEXT
Tagged: #bash #terminal #function #display #arguments
ADD COMMENT
Topic
Name
5+6 =