Delete spaces from text file
Hi Guys,
I have a space delimited file that I would like to edit. Basically, I need to delete 4 blank spaces. See example: Code:
888 8888 888888888/ABC 88 888888888888888 1195.00 Thank you |
The forum fixed the margin for me... I should copy and paste the entire file here hehehhe well, the second line has 1195.00 moved 4 spaces to the right.
Thank you! |
If you want to show us the original formatting in your posts please use code-tags (look at the link in my signature) to post it.
|
ok
Thank you! [code] 800 8010 690041334/MOH 18 201015104280818 3195.00 800 8010 690041334/MOH 18 201015104280818 3195.00 Thank you |
Ok
Thank you Code:
|
Code:
$ cat file Code:
$ sed 's/8 *3/8 3/g' file Code:
$ sed -e 's/^.//; s/ */ /g' file |
Using awk version 4:
Code:
awk 'NR == 1 { |
All times are GMT -5. The time now is 03:02 AM. |