Find Content File in linux And count
By Admin - Kamis, 22 November 2012
#grep -r “oci_connect” /data/lms/htdocs
This will search the contents of the file with the word "oci_connect" in the folder / etc is recursive
Options that are often used are:
- R: recursive to sub folder
- S: supressed altogether error message, usually because there is no file access authority
- F: looking for fix-string, in expression
And so how to count that line that containt "nurcholikulanwar"?
grep -r "nurcholikulanwar" /data/lms/htdocs | wc -l
Follow our blog on Twitter , become a fan on Facebook . Stay updated via RSS
0 komentar for " Find Content File in linux And count "