Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a.txt - 4
- b.txt - 5
- c.txt - 0
- TEST
- TEST
- TEST
- TEST
- TEST_1
- TEST_2
- TEST4
- grep -c "TEST" a.txt
- $ echo 'test1 test2 test3' >/tmp/file1
- $ echo 'test1 test2 test3 test4' >/tmp/file2
- $ grep -o test /tmp/file* | uniq -c
- 3 /tmp/file1:test
- 4 /tmp/file2:test
Add Comment
Please, Sign In to add comment