Search Results

Search: Posts Made By: iffy290
2,517
Posted By iffy290
Thank you for all your help. Finally it worked...
Thank you for all your help. Finally it worked !!!

Solution
sed 's/[^ -~]/ /g' file.txt
2,517
Posted By iffy290
Apologies. Realised about the code tags just now....
Apologies. Realised about the code tags just now.
grep '[^ -~]' file.txt | sed 's/[^ -~]//g'
GAVISCON LIQUID PEPPERMINT OT 000022000362700 159588000007979400 50001584182 ...
2,517
Posted By iffy290
cat file.txt | grep '[^ -~]' | sed 's/[^ -~]//g'...
cat file.txt | grep '[^ -~]' | sed 's/[^ -~]//g' | sed -n 's/[^ -~]/ /pg'

sed: command garbled: s/[^ -~]/ /pg
2,517
Posted By iffy290
Removing special chars from file and maintain field separator
Running SunOs 5.6. Solaris.

I've been able to remove all special characters from a fixed length file which appear in the first column but as a result all subsequent columns have shifted to the...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 11:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy