On Tue, Aug 2, 2011 at 6:59 PM, Sergey Dryga wrote: > > Those won't do him any good unless he converts it to ASCII. > > It's an ASCII string embedded in a binary file that he wants to change. > > That's exactly what sed will do. OP specified that he needs to change > ASCII > string. Might need to maintain the string length, but that's about it. > command line is: > sed s/Search String/Subst. String/ filename > newFilename > I just verified it o a bin file generated by gcc (actually a Hello World = in > QT4). > Nice one. Or just open it with vim -b and replace strings with shift+R or :%s/// etc and job done. I know, I am a vim maniac :-) Tamas > > Sergey Dryga > http://beaglerobotics.com > > > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --=20 int main() { char *a,*s,*q; printf(s=3D"int main() { char *a,*s,*q; printf(s=3D%s%s%s, q=3D%s%s%s%s,s,q,q,a=3D%s%s%s%s,q,q,q,a,a,q); }", q=3D"\"",s,q,q,a=3D"\\",q,q,q,a,a,q); } --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .