小编Pan*_*j K的帖子

如何在文件中grep"\n"

示例文件:abc.ksh

echo "This is a sample file." >> mno.txt
echo "\nThis line has new line char." >> mno.txt
Run Code Online (Sandbox Code Playgroud)

我想要

echo "\nThis line has new line char." >> mno.txt
Run Code Online (Sandbox Code Playgroud)

作为输出.

linux grep

8
推荐指数
2
解决办法
3万
查看次数

标签 统计

grep ×1

linux ×1