On Thu, Jun 7, 2012 at 6:57 PM, Ben Fritz <fritzophre...@gmail.com> wrote:
> On Thursday, June 7, 2012 11:49:02 AM UTC-5, Dominique Pelle wrote:
>> Marc Weber <marco-owe...@gmx.de> wrote:
>>
>> > forgett about vim, on linux just do:
>> > tail -n +10 file.sql  | head -n +10 > trimmed.sql
>>
>> Many people posted solutions with head and tail that don't work.
>>
>
> Just curious...I've never used head or tail. But why won't they
> work in this situation? This seems like exactly what they're
> meant to accomplish; retrieving only a specific part of a file.


Because  tail  outputs the last n lines of a file, but what user
wanted is to remove the last lines.   So unless you know the
number of lines, you can't use tail.  But perhaps someone
can prove me wrong.

-- Dominique

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to