grep command is used to extract lines of data from files or extract data from other Linux commands by using a pipe. When using the Linux grep command, there are many ways you can extract or print lines. You can use standard text to grep or you can use regex patterns.The basic
grep syntax is grep [options] [pattern] [file|files]. grep -R, grep -r, grep --recursive ==> used to grep files recursively in other directories.
grep -n ==> displays the output with the line numbergrep -i ==> to ignore case while grepgrep -v ==> returns all other data except the argument given.
Some examples on Find Command and Awk Command
ReplyDelete