Admins eHow
SysAdmin Tips & Tricks
June 22, 2009
Remove comments and empty lines on linux using sed command
Filed under:
CentOS
,
Debian
,
General
— Tags:
comments
,
empty lines
,
linux
,
remove
,
sed
— admin @ 10:24 am
sed -e '/^\s*#.*$/d' -e '/^\s*$/d' filename
Comments (1)
Pages:
Sunrise Alarm Privacy Policy
Categories:
Android
Apache
Apple
Bash
CentOS
cPanel
CSS
Debian
dns
DreamBox
Forex
General
HTML
IIS
iPhone
JavaScript
linux
MAC OS X
MySQL
Networking
Nginx
PHP
Raspberry pi
Security
Torrent
Windows
WordPress
XEN
Search:
Archives:
October 2024
December 2022
January 2022
December 2021
April 2021
March 2021
November 2019
October 2019
April 2019
September 2017
August 2017
April 2017
February 2017
May 2016
January 2016
July 2015
May 2015
March 2015
February 2015
October 2014
September 2014
August 2014
July 2014
May 2014
March 2014
November 2013
October 2012
September 2012
July 2012
April 2012
March 2012
February 2012
January 2012
December 2011
October 2011
September 2011
June 2011
May 2011
April 2011
March 2011
November 2010
October 2010
September 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
Meta:
Log in
RSS
Comments
RSS
Valid
XHTML
XFN
WP
Powered by
WordPress
Remove comments and empty lines on linux using sed command