linux 中$ 意思

grep -n sh$ text.txt   查找文件内容中以 Sh 结尾。

 

grep -n ^a text.txt    文件文件内容中以 a 开头。

 

grep -n ^$ text.txt    文件文件内容中以 空白 内容。

原文地址:https://www.cnblogs.com/brianlai/p/9546386.html