The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

SLQotD by Control 2005-03-10 04:50:47
Simple Linux Question of the Day:

I have a text file, from which I would like to remove the first line. So far, this is what I've got:

wc -l input.file|xargs tail -n > output.file

which is stupid, because I'm just copying the file, I know. I need a way to reduce by one the value returned by wc.
Can anyone help me?
[ Reply ]
  In Bash: by jiteo2005-03-10 04:54:25
    Uh huh, that works I guess by Control2005-03-10 04:59:39
  Why don't you just edit that line out ? by ideur2005-03-10 05:00:32
    Because I have a couple thousand files by Control2005-03-10 05:02:40
      "man sed" (n/t) by ideur2005-03-10 05:04:21
  tail +2? by eme2005-03-10 05:02:32
    *SMACK* - I need to be severly LARTed by Control2005-03-10 05:04:23
    Damn it you GNU zealots! by jiteo2005-03-10 05:07:59
      It is in there... I think by Hekatombe2005-03-10 05:16:15
        True. by jiteo2005-03-10 05:20:57
      My fault :-) by eme2005-03-10 05:18:06

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)