Results 1 to 5 of 5

Thread: remove first line from file

  1. #1
    Join Date
    Apr 2005
    Beans
    849

    remove first line from file

    Is there some nice linux tool for removing the first line of a file?

    thanks in advance

  2. #2
    Join Date
    Feb 2006
    Location
    Finland
    Beans
    189
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: remove first line from file

    One way: sed 1d file > newfile

  3. #3
    Join Date
    Apr 2005
    Beans
    849

    Re: remove first line from file

    hehe thanks for the quick reply

  4. #4
    Join Date
    Dec 2006
    Beans
    37

    Question Re: remove first line from file

    Another way: tail +2 file > newfile

  5. #5
    Join Date
    Oct 2005
    Beans
    86

    Re: remove first line from file

    Quote Originally Posted by <mawe> View Post
    Another way: tail +2 file > newfile
    I think it should be
    Code:
    tail -n +2 file > newfile

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •