Results 1 to 3 of 3
i want to find a command line way to edit a text file to delete all commas in the file. i do not want to replace them w/ anything. can ...
- 01-04-2011 #1Just Joined!
- Join Date
- Oct 2007
- Posts
- 10
[SOLVED] edit text files - delete commas
i want to find a command line way to edit a text file to delete all commas in the file. i do not want to replace them w/ anything. can anyone make any suggestions of a simple command line to do this.
- 01-04-2011 #2This will *output* <TEXTFILE> without any commas.Code:
sed s/,//g <TEXTFILE>
For actually modifying <TEXTFILE> with sed one parameter is missing.
You will find it here
Code:man sed
You must always face the curtain with a bow.
- 01-06-2011 #3Just Joined!
- Join Date
- Oct 2007
- Posts
- 10
thanks a bunch. it worked great and then i did another substitution and had my file all fixed up. i even fully automated the process in my data base


