I can see that using sed would be quite simple. However, I don't want to wait for a 30 GB file to be re-written. Looking at the man page, I see there is an "--in-place" option for sed. I guess I better delve into sed some more. I wonder if I can tell it to stop after the first "\n" to avoid scanning the whole file to change the first line. Or maybe I can just hit ctrl-c?

Hans van der Made wrote:



Anybody know of a good simple binary file editor for Linux that can
handle 30 GB files without a problem? If so, I can simply edit the
YUV4MPEG header to suit me. By the way, the yuv4mpeg man page is quite
good.



I've done this with sed s/[string]/[new string]/g but if you want a real editor, vim might handle these large files correctly.

Regards,

Hans






-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to