Theodoros Emmanouilidis

Notes & Thoughts

Replace Spaces & Tabs With Spaces In File


The following command will substitute all tabs & spaces in a file with just spaces. Very usefull if you want to prepare a file as csv or inject the data contained in a database table.

sed -r 's/[[:blank:]]/ /g' original_file > new_file