不知道为什么这样写# grep '^&' /etc/profile | wc -l找不出结果,请问这个应该怎么写才是真确的?
grep -E '^$' -n /etc/profile
加上正则的参数,试试下面的命令
grep -e '^$' -n /etc/profile