a technical how to
Harald Schmalzbauer
h at schmalzbauer.de
Mon Dec 8 17:59:31 PST 2003
On Tuesday 09 December 2003 02:51, homeyra g wrote:
> So, I hope this is the right address for this type of
> question. If not would you please forward this and/or
> let me know the correct address.
>
> Thanks,
>
> Here is the question: How to truncate a file from the
> begining to a certain point in the file?
Have a look at sed. Sorry can't help with syntax and I'm sure one can also do
the same with perl or awk or whatever. But for the first, man (1) sed will
help with 'cat yourfile | sed -youroptions' e.g.
You can also use vi (if it's a regular textfile with less than hundreds of
megs), find your endpoint with e.g "/YourEndKeyWord" and do in instruction
mode a "dG", after that save.
-Harry
>
>
> __________________________________
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing.
> http://photos.yahoo.com/
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20031209/fa8e4210/attachment.bin
More information about the freebsd-questions
mailing list