Date: Tue, 9 Dec 2003 02:59:22 +0100 From: Harald Schmalzbauer <h@schmalzbauer.de> To: homeyra g <homeyra_s@yahoo.com>, freebsd-questions@freebsd.org Subject: Re: a technical how to Message-ID: <200312090259.23677@harrymail> In-Reply-To: <20031209015125.74977.qmail@web14806.mail.yahoo.com> References: <20031209015125.74977.qmail@web14806.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Boundary-02=_7xS1/wgNhqe0Uj3 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Description: signed data Content-Disposition: inline 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=20 the same with perl or awk or whatever. But for the first, man (1) sed will= =20 help with 'cat yourfile | sed -youroptions' e.g. You can also use vi (if it's a regular textfile with less than hundreds of= =20 megs), find your endpoint with e.g "/YourEndKeyWord" and do in instruction= =20 mode a "dG", after that save. =2DHarry > > > __________________________________ > Do you Yahoo!? > New Yahoo! Photos - easier uploading and sharing. > http://photos.yahoo.com/ > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" --Boundary-02=_7xS1/wgNhqe0Uj3 Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQA/1Sx7Bylq0S4AzzwRAvsIAJ92T/XB5Bz6a1cw51vO7XQ5Db3QsACcDufB tVtpMrWIOrdEQMrENQrW/9k= =PMJK -----END PGP SIGNATURE----- --Boundary-02=_7xS1/wgNhqe0Uj3--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312090259.23677>