Find Content File in linux And count

12:16 AM 0 Comments

#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

Install Server Networking Programming

Support you how to install server, networking and Programming Easy

0 comments:

You can post comment with english language or indonesia language.
Anda bisa memberikan komentar dalam bahasa inggris atau bahasa indonesia.