Oct 1, 2002 #1 czins Technical User Jan 14, 2002 37 CH Hello AIXperts, I would like to change a pattern in a binary file with the following expression: cat file | sed "s/c34/s2/" > test this changes only about half of the occurences of the string c34. Any ideas ? Best regards Stefan
Hello AIXperts, I would like to change a pattern in a binary file with the following expression: cat file | sed "s/c34/s2/" > test this changes only about half of the occurences of the string c34. Any ideas ? Best regards Stefan
Oct 1, 2002 #2 mkharris Technical User Nov 20, 2000 104 GB I'd guess you are having multiple instances on a line, and you are only transforming the first one. You need the global clause: cat file | sed "s/c34/s2/g" > test hth Mark Upvote 0 Downvote
I'd guess you are having multiple instances on a line, and you are only transforming the first one. You need the global clause: cat file | sed "s/c34/s2/g" > test hth Mark
Oct 1, 2002 Thread starter #3 czins Technical User Jan 14, 2002 37 CH Hello Mark, this is the solution ! Thank you very much. Regards Stefan Upvote 0 Downvote