Category Archives: Script

This section will have one liner shell script which can be used for day to day in system management

Remove spaces between words

You may have comes across situation where you have to manually edit a single file using excel or words to remove the space between words which is taking consuming and Boring 🙂

The below command can do the trick in one command to save your day

 

cat 116.txt | sed -e ‘s/[\t ]//g;/^$/d’  > test12

116.txt is the input file which has spaces between words

sed -e ‘s/[\t ]//g;/^$/d’  is the command to clear space in words