[prev in list] [next in list] [prev in thread] [next in thread]
List: bash-bug
Subject: Re: history position out of range
From: DennisW <dennistwilliamson () gmail ! com>
Date: 2010-01-15 17:21:48
Message-ID: 1a5a9fdb-94b2-431c-b7be-f03f2f20a7c7 () r24g2000yqd ! googlegroups ! com
[Download RAW message or body]
On Jan 14, 2:11=A0pm, Sergio Monteiro Basto <ser...@sergiomb.no-ip.org>
wrote:
> Hi,
> How I delete history from entry 2 to entry 22
>
> $ history -d 2:22
> bash: history: 2:22: history position out of range
>
> man history say:
>
> history -d offset
>
> where is define, the sintax of the offset?
>
> Thanks in advance,
> --
> S=E9rgio M. B.
>
> =A0smime.p7s
> 4KViewDownload
See noun definition 6:
http://en.wiktionary.org/wiki/offset
an offset is a distance, not a range.
Also, see my previous answer for a snippet that will perform your
delete by range for you. You could wrap it in a function.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic