Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 6
    After you delete 510, 511 becomes 510, 512 becomes 511, and so on. So this will delete every other line.
    – Barmar
    Commented Feb 7, 2013 at 12:12
  • You cannot include variables in brace expansions.
    – chepner
    Commented Feb 7, 2013 at 18:10
  • seq 563 514 will print nothing. You need seq 563 -1 514. Alternately, you can simply use history -d $1 with arguments as 514 563
    – anishsane
    Commented Aug 21, 2015 at 4:43