Comments on: How to View Configuration Files Without Comments in Linux https://www.tecmint.com/view-files-without-comments-in-linux/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Thu, 13 Jul 2023 09:48:45 +0000 hourly 1 By: David Haines https://www.tecmint.com/view-files-without-comments-in-linux/comment-page-1/#comment-1125983 Fri, 05 Apr 2019 13:28:32 +0000 https://www.tecmint.com/?p=28265#comment-1125983 In reply to David.

You can combine the # and the $(space) in one grep statement:

# grep -v '^#\|^$' /etc/some/conf/file
]]>
By: Aaron Kili https://www.tecmint.com/view-files-without-comments-in-linux/comment-page-1/#comment-957400 Wed, 03 Jan 2018 18:38:04 +0000 https://www.tecmint.com/?p=28265#comment-957400 In reply to Stoyan Stoyanov.

@Stoyan

Thanks for sharing, we will try it out.

]]>
By: Aaron Kili https://www.tecmint.com/view-files-without-comments-in-linux/comment-page-1/#comment-957399 Wed, 03 Jan 2018 18:36:56 +0000 https://www.tecmint.com/?p=28265#comment-957399 In reply to Rishi.

@Rishi

Thanks for the kind words of appreciation, and for following us.

]]>
By: Rishi https://www.tecmint.com/view-files-without-comments-in-linux/comment-page-1/#comment-956970 Tue, 02 Jan 2018 17:21:23 +0000 https://www.tecmint.com/?p=28265#comment-956970 In reply to David.

Yes, right.

]]>
By: Rishi https://www.tecmint.com/view-files-without-comments-in-linux/comment-page-1/#comment-956969 Tue, 02 Jan 2018 17:20:50 +0000 https://www.tecmint.com/?p=28265#comment-956969 Many thanks for this great and useful tip.

]]>