Linux Scripts
Comment out block of code in bash script:
: <<'END'
put here whatever you like
END
echo new line:
echo -e "something \nelse"
Check if file exists:
if [ -f /tmp/foo.txt ]
then
echo the file exists
else
echo the file does not exist
fi
Comment out block of code in bash script:
: <<'END'
put here whatever you like
END
echo new line:
echo -e "something \nelse"
Check if file exists:
if [ -f /tmp/foo.txt ]
then
echo the file exists
else
echo the file does not exist
fi