我使用grep来匹配文件中的字符串。下面是一个示例文件:example two null,example four null,example four null, example two null, - Line number : 2 Total null count : 2
我知道-c返回所有匹配的
我必须找到使用grep命令没有逗号的txt文件的第250行。该文件有超过250行,但我必须找到第250行,没有。我使用了这个命令:然后查找第250行,然后执行以下命令,查看行号是否相同,而且它们是相同的。grep -n "this is text from the 250th line" test.txt
我认为不应该是这样的,因为没有逗号的文件的第250行不应该与普通文件的第250行相同,因为普通文件中有许多带有逗号的行,因此<em