sed - remove groups of spaces -


i have text file want remove groups of 2 or more space characters each line.

here example of line:

company management                                      company management                                      company management reports                              shipment - text                                                                     program                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              

here should be:

company management  company management  company management reports  shipment - text program 

note: there tab character before each "column"

note 2: each line has either 4 or 5 "columns"

sed 's/   *//g' file 

..............


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -