Sed Shell Script To Remove All Blank Spaces From a Text File

in Categories File-management last updated September 16, 2008

sed (Stream EDitor) a Unix utility which parses text files and implements a programming language which can apply textual transformations to such files. It reads input files line by line (sequentially), applying the operation which has been specified via the command line (or a sed script), and then outputs the line.

The following example shows a typical use of sed:

Share this on:

5 comment

  1. Thanks, Very useful script.. How to remove a particular word say etho


    want to remove eth0 from above line

    Have a question? Post it on our forum!