UNIX find pattern
Find text in files:
grep -c -r pattern file
-c fyrir count, telur hverstu oft kemur fyrir
-r fyrir recursive, fer ofan í undirmöppur
e.x. grep -c -r logi *
search all files/folders for "logi"
...havn't tried the "find" ;)
In case of personal memory failures...
Find text in files:
grep -c -r pattern file
-c fyrir count, telur hverstu oft kemur fyrir
-r fyrir recursive, fer ofan í undirmöppur
e.x. grep -c -r logi *
search all files/folders for "logi"
...havn't tried the "find" ;)
No comments:
Post a Comment