Technobounce
Feed
Contact
Spiffy sed command to clean up conf files
2009/July/16
Linux
Use the following sed command to clean up config files and remove all the comments and blank lines:
sed '/ *#/d; /^ *$/d'
[ add comment ]
( 5 views )
[ 0 trackbacks ]
permalink
( 2.9 / 330 )
| 1 |
2
|
3
|
4
|
Next>
Last>>
Links
Home
Contact Me
Mixes and mp3s
My resume
Photos
Login
Calendar
«
July 2009
»
Sun
Mon
Tue
Wed
Thu
Fri
Sat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
09/06/2010
Archives
View Archives
2009
July
Spiffy sed command to clean up conf files
09/07/16
February
2008
March
2007
November
September
July
May
April
March
January
2006
November
October
Categories
General
News
Announcements
Events
Misc
Technology
Linux
Debian
BlackBerry
Music
Ableton
MachineDrum
Photography