Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Dec 2003 22:30:46 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        "Kevin D. Kinsey, DaleCo, S.P." <kdk@daleco.biz>
Cc:        Harald Schmalzbauer <h@schmalzbauer.de>
Subject:   Re: a technical how to
Message-ID:  <20031209043046.GC2435@dan.emsphone.com>
In-Reply-To: <3FD54A37.8050503@daleco.biz>
References:  <20031209015125.74977.qmail@web14806.mail.yahoo.com> <200312090259.23677@harrymail> <3FD54A37.8050503@daleco.biz>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Dec 08), Kevin D. Kinsey, DaleCo, S.P. said:
> Harald Schmalzbauer wrote:
> >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?

If you're writing a script, use the /usr/bin/truncate command.  If
you're writing a C program, use the truncate() function.

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031209043046.GC2435>