how to use grep command in unix grep command kya hota hai grep command in hindi egrep command fgrep command
grep_command_kya_hota_hai
linux egrepcommand howtousegrepcommandinunix
grepcommand
? वहडओ Details -
इस वहडओ म grep Command कय हत ह उसक use कय हत ह इसक सभ जनकर और उपयग details म बतय गय ह ज Unix Linux Operating System म कम आत ह ऐसह Linux Commands जनन क लए channel स बन रहय..
और इस वहडओ क बर म कछ सवल ह त comment section म डल दजए.
? Fgrep options with Example -
1 -c option: Displaying the count of number of matches.
We can find the number of lines that match the given string.
Example:
fgrep -c kamlesh.tech gfile
2 -h option: To display the matched lines.
Example:
fgrep -h kamlesh.tech gfile
3 -i option: Used in case insensitive search.
It ignore upperlower case distinction during comparisons.
Example:
fgrep -i string1string2 gfile
4 -l option: It will display the file names that match the pattern.
We can just display the files that contains the given stringpattern.
Example:
fgrep -l string 1string2 learn gfile
5 -n option: Precede each line by its line number in the file.
It shows line number of file with the line matched.
Example:
fgrep -n learning gfile
6 -v option: It is used to display all lines except those that contain the pattern.
It will print all lines except those that contain the pattern.
Example:
fgrep -v tech gfile
7 -x option: It will display only lines matched entirely.
Example :
fgrep -x tech gfile
? Egrep options with Example -
-c : Used to counts and prints the number of lines that matched the pattern and not the lines.
Example :
egrep -c test test.c
-v: It prints the lines that does not match with the pattern.
Example :
egrep -c test test.c
egrep is a pattern searching command which belongs to the family of grep functions.
It works the same way as grep -E does.
It treats the pattern as an extended regular expression and prints out the lines that match the pattern.
If there are several files with the matching pattern it also displays the file names for each line.
? Disclaimer -
Hello दसत म Kamlesh और सवगत ह आपक KamleshTech म इस Channel पर आपक Information Technology और Educational Realated Information Share करन ह इस channel क Purpose ह और य सभ Information आपक हद भष म Provide क जयग.
त आपक अगर IT Feild म Careers करन ह त य channel आपक लए Best सबत ह सकत ह त ऐस ह Intrested और IT Related वहडओस दखन ह त Channel क Subscribe करक रखन ह और अपन दसत क Share करन ह..
?
?Contact Follow On Social Media -
Im on Instagram as kamlesh_r_teli.
? वहडओ क जनकर अगर अचछ लग ह त
?
Like
Comment
Share
Subscribe
? Join Telegram Group for Latest Update and intraction of Communication on KamleshTech
Link :
Источник: rutube.ru