Feb 27, 2014 #1 pfildes Programmer Jun 17, 2004 54 0 0 GB I have a text file with the '\f' character that I need to replace with the characters '\r\n'. I have tried the 'TR' command but that failed. Can anybody please advise how I do this?
I have a text file with the '\f' character that I need to replace with the characters '\r\n'. I have tried the 'TR' command but that failed. Can anybody please advise how I do this?
Mar 3, 2014 #2 KenCunningham Technical User Mar 20, 2001 8,475 0 0 GB Can you tell us what you did with tr that failed? You can replace characters using vi too if you wish. The internet - allowing those who don't know what they're talking about to have their say. Upvote 0 Downvote
Can you tell us what you did with tr that failed? You can replace characters using vi too if you wish. The internet - allowing those who don't know what they're talking about to have their say.
Mar 5, 2014 Thread starter #3 pfildes Programmer Jun 17, 2004 54 0 0 GB I tried the following command; cat myfile.txt | tr '\014' '\015\012' > myfile.out but this didnt seem to do anything. I was thinking that I need to replace a single character with another single character, not multiple characters Upvote 0 Downvote
I tried the following command; cat myfile.txt | tr '\014' '\015\012' > myfile.out but this didnt seem to do anything. I was thinking that I need to replace a single character with another single character, not multiple characters