打印行号的8种命令方法
cat -n oldboy.txt
nl oldboy.txt
less -N nginx.conf
vi oldboy.txt set nu
grep -n “. “ oldboy.txt
grep -n “. *“ oldboy.txt
awk ‘{print NR” “$0}’ oldboy.txt
sed ‘=’ /etc/rsyslog.conf
cat -n oldboy.txt
nl oldboy.txt
less -N nginx.conf
vi oldboy.txt set nu
grep -n “. “ oldboy.txt
grep -n “. *“ oldboy.txt
awk ‘{print NR” “$0}’ oldboy.txt
sed ‘=’ /etc/rsyslog.conf