Comments on: 12 Practical Examples of Linux Grep Command https://www.tecmint.com/12-practical-examples-of-linux-grep-command/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Thu, 25 Jan 2024 05:36:24 +0000 hourly 1 By: Thanh Phong https://www.tecmint.com/12-practical-examples-of-linux-grep-command/comment-page-1/#comment-1367873 Mon, 28 Sep 2020 09:33:45 +0000 http://www.tecmint.com/?p=4613#comment-1367873 In reply to Thanh Phong.

Sorry, the acutal command is:

# echo Host * | grep "Host \*$" not work !!
]]>
By: Thanh Phong https://www.tecmint.com/12-practical-examples-of-linux-grep-command/comment-page-1/#comment-1367872 Mon, 28 Sep 2020 09:31:30 +0000 http://www.tecmint.com/?p=4613#comment-1367872 Please tell me how to find * using grep command?

# echo Host * | grep "Host \*" not work !!
]]>
By: ggx2 https://www.tecmint.com/12-practical-examples-of-linux-grep-command/comment-page-1/#comment-940884 Mon, 27 Nov 2017 06:45:27 +0000 http://www.tecmint.com/?p=4613#comment-940884 Your first example is an awesome choice! It’s exactly what I came here looking how to use grep to do.

]]>
By: Nemanja https://www.tecmint.com/12-practical-examples-of-linux-grep-command/comment-page-1/#comment-927195 Thu, 26 Oct 2017 13:51:48 +0000 http://www.tecmint.com/?p=4613#comment-927195 The example number 2 is is VERY WRONG.

# grep -v “#” /etc/apache2/sites-available/default-ssl

will also exclude lines like: value display_errors off; # turns off errors right way to this is:

# grep -v "^#"  /etc/apache2/sites-available/default-ssl
so it will exclude only lines that begins with #.
]]>
By: Ravi Saive https://www.tecmint.com/12-practical-examples-of-linux-grep-command/comment-page-1/#comment-865201 Tue, 07 Feb 2017 09:47:38 +0000 http://www.tecmint.com/?p=4613#comment-865201 In reply to saravana.

@Saravana,

Here is the guide that explain the difference between grep, egrep, grep etc.

What’s Difference Between Grep, Egrep and Fgrep

]]>