Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash command substitution

# Basic syntax:
$(command)

# Example usage:
for file in $(ls)
do
  echo $file
done
--> # all files in your current directory are echoed
Source by www.cyberciti.biz #
 
PREVIOUS NEXT
Tagged: #bash #command #substitution
ADD COMMENT
Topic
Name
3+5 =