AI, ML, Development + Cisco Learning Blog Learning about Machine Learning, Artificial Intelligence, related devlopment topics and formerly Routing and Switching, Datacenter, Security and other topics, CCIE #23664, Frank Wagner

5. August 2006

Remove empty lines with sed from a configuration

Filed under: Tips / Hints — ocsic @ 05:53

If you want to remove all empty lines from a config file, you can use sed on unix system. Use with the regular expression:

sed ‚/^$/d/‘ config-file > new-file

Source:

http://www.cornerstonemag.com/sed/


Keine Kommentare »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress