Jun 25, 2001 #1 krpst19 Programmer Jun 22, 2001 10 US I have a text file that has several hundred lines. I would like to replace the commas in each line with |'s. Is there an easy way to do this? thanks K
I have a text file that has several hundred lines. I would like to replace the commas in each line with |'s. Is there an easy way to do this? thanks K
Jun 25, 2001 #2 vgersh99 Programmer Jul 27, 2000 2,146 US sed -e 's/\|/\,/g' myFile.txt Upvote 0 Downvote
Jun 25, 2001 #3 vgersh99 Programmer Jul 27, 2000 2,146 US ooops - wrong replacement [ , => | ] sed -e 's/\,/\|/g' myFile.txt Upvote 0 Downvote