From owner-freebsd-questions@FreeBSD.ORG Mon Dec 8 17:59:31 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7F6216A4CE for ; Mon, 8 Dec 2003 17:59:31 -0800 (PST) Received: from mail-in.m-online.net (svr8.m-online.net [62.245.150.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 391B643D28 for ; Mon, 8 Dec 2003 17:59:30 -0800 (PST) (envelope-from h@schmalzbauer.de) Received: from mail.m-online.net (svr14.m-online.net [192.168.3.144]) by svr8.m-online.net (Postfix) with ESMTP id 4CF4537D6; Tue, 9 Dec 2003 02:59:29 +0100 (CET) Received: from cale.flintsbach.schmalzbauer.de (ppp-62-245-161-28.mnet-online.de [62.245.161.28]) by mail.m-online.net (Postfix) with ESMTP id 2436D1FEFD; Tue, 9 Dec 2003 02:59:24 +0100 (CET) From: Harald Schmalzbauer To: homeyra g , freebsd-questions@freebsd.org Date: Tue, 9 Dec 2003 02:59:22 +0100 User-Agent: KMail/1.5.4 References: <20031209015125.74977.qmail@web14806.mail.yahoo.com> In-Reply-To: <20031209015125.74977.qmail@web14806.mail.yahoo.com> X-Birthday: 06 Oktober 1972 X-Name: Harald Schmalzbauer X-Phone1: +49 (0) 163 555 3237 X-Phone2: +49 (0) 89 18947781 X-Address: Munich, 80686 X-Country: Germany MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_7xS1/wgNhqe0Uj3"; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <200312090259.23677@harrymail> Subject: Re: a technical how to X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2003 01:59:31 -0000 --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--