On Jan 14, 2:11 pm, 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érgio M. B. > > smime.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.