1

匹配_.txt,并将txt替换为tdz
#awk ‘{if ($1~/_.txt/) print $0}’ tdz.txt |sed ‘s/txt/tdz/g’

#awk -F “#” ‘{print NF,NR,FILENAME,ENVIRON[“USER”],$0}’ a.txt
其中ENVIRON[“USER”]显示当前用户信息
[……]

Read more