The grep command should support multiple flags at once.įor example, running grep -l -v "hello" file1.txt file2.txt should Lines to be prefixed with its line number: 1:helloĪnd if we run grep -i "HELLO" input.txt, we'll do a case-insensitive match, If we run grep -n "hello" input.txt, the -n flag will require the matching
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |