Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash here document example

cat << EOF > file.txt
The current working directory is: $PWD
You are logged in as: $(whoami)
EOF
Source by linuxize.com #
 
PREVIOUS NEXT
Tagged: #bash #document
ADD COMMENT
Topic
Name
1+6 =