[Tutor] Truncate First Line of File
Alan Gauld
alan.gauld at btinternet.com
Thu Feb 28 10:37:01 CET 2008
"Alex Ezell" <aezell at gmail.com> wrote
> Thanks to everyone for the help. My coworker seems to really prefer
> doing it via some system call.
>
> She seems to think it's possible quickly with csplit, which I've
> never
> used. I'll be investigating it in the morning, because she's really
> good at what she does. :)
yes, csplit can do it too, as could awk,ml or sed or several other
Unix tools.
And if quick is quick to qwrite then using the shell is certainly
best.
Csplit again still has to read the whole file so it won't be massively
quicker than any other method however.
Alan G
More information about the Tutor
mailing list