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?
Hiya,
no-one has mentioned 'head' yet:
head -100 file newfile
to save the first 100 lines of file into newfile.
You can also use a combination of head and tail to take a portion of the
file, e.g:
head -100 file | tail -3 newfile
to save off lines 98,99 and 100 of file into newfile. I've
no-one has mentioned 'head' yet:
head -100 file newfile
to save the first 100 lines of file into newfile.
You can also use a combination of head and tail to take a portion of the
file, e.g:
head -100 file | tail -3 newfile
to save off lines 98,99 and 100 of file into newfile. I've known
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.
Is it a text or binary file?
First, I suggest working from a copy of the file for safety sake.
For a text file, Use vi. Count down to which line is
On Dec 8, 2003, at 8:51 PM, homeyra g wrote:
Here is the question: How to truncate a file from the
begining to a certain point in the file?
The question is whether this file is ASCII text so line-based tools
(such as tail) work, or whether you are truncating a binary file, in
which case split -b
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?
__
Do you Yahoo!?
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
On Mon, Dec 08, 2003 at 05:51:25PM -0800, homeyra g wrote:
Here is the question: How to truncate a file from the
begining to a certain point in the file?
You can do this in vi. If you are trying to keep only the beginning,
you'd do this, where ++ is the first line you don't want:
:++,$d
If
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
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.
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.
11 matches
Mail list logo