Feb 27, 2014 #1 pfildes Programmer Joined Jun 17, 2004 Messages 54 Location 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 Joined Mar 20, 2001 Messages 8,475 Location 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 Joined Jun 17, 2004 Messages 54 Location 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