shell
#make a folder by current date
DIR=$(date "+%Y%m%d")
echo "$DIR"
mkdir "$DIR"
#print a text file line one line
#!/bin/bash
filename='company.txt'
n=1
while read line; do
# reading each line
echo "Line No. $n : $line"
n=$((n+1))
done < $filename
filename='company.txt'
n=1
while read line; do
# reading each line
echo "Line No. $n : $line"
n=$((n+1))
done < $filename
#multi-line comments
method 1
if false; then # xxx fi
method 2
:<<! echo 'abc' echo 'def' echo 'hij' !
浙公网安备 33010602011771号