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

 #multi-line comments

method 1
if false; then # xxx fi

method 2
:<<!
echo 'abc'
echo 'def'
echo 'hij'
!

posted on 2020-03-25 16:23  荷树栋  阅读(119)  评论(0)    收藏  举报

导航