Re: a technical how to

2004-01-26 Thread Paul Everlund
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?

Re: a technical how to

2003-12-11 Thread David Carter-Hitchin
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

Re: a technical how to

2003-12-11 Thread David Carter-Hitchin
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

Re: a technical how to

2003-12-09 Thread Jerry McAllister
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

Re: a technical how to

2003-12-09 Thread Charles Swiger
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

a technical how to

2003-12-08 Thread homeyra g
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!?

Re: a technical how to

2003-12-08 Thread Harald Schmalzbauer
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

Re: a technical how to

2003-12-08 Thread William O'Higgins
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

Re: a technical how to

2003-12-08 Thread Kevin D. Kinsey, DaleCo, S.P.
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

Re: a technical how to

2003-12-08 Thread Dan Nelson
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.

Re: a technical how to

2003-12-08 Thread Matt Emmerton
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.