Find Content File in linux And count
#grep -r “oci_connect” /data/lms/htdocsThis 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
0 comments:
You can post comment with english language or indonesia language.
Anda bisa memberikan komentar dalam bahasa inggris atau bahasa indonesia.