Log in

No account? Create an account

Previous Entry | Next Entry


If you're like me and only use 'sed' for text file manipulation juuuuust often enough to forget everything about it every single time....

There's a great little cheat sheet of sed oneliners here: http://sed.sourceforge.net/sed1line.txt

...so sayeth the guy who couldn't remember how to easily delete the first 18 million records of an input file.



( 7 comments — Leave a comment )
Jan. 21st, 2009 06:36 pm (UTC)
I don't know anything about this, so I probably shouldn't try to be funny, but for a second I could have sworn that your last sentence said "so sed the guy who couldn't remember..." :P
Jan. 21st, 2009 06:37 pm (UTC)
What passes for my reputation as a punster must be preceding me. I don't even have to work at it anymore. ;)

Jan. 21st, 2009 07:31 pm (UTC)
Heh I have to go to that page pretty much anytime I need to do anything more complicated than single character substitution :/
Jan. 21st, 2009 07:34 pm (UTC)
Although frankly for your issue I probably would have just used tail -n +18000000 ;)
Jan. 21st, 2009 07:38 pm (UTC)

That would work too.
Jan. 21st, 2009 07:55 pm (UTC)
*nix, allowing friends to be bastards to each other in at least 5 different ways :)
Jan. 21st, 2009 07:56 pm (UTC)
I figure as long as I play both sides of that line pretty much equally, I'm ok. ;)
( 7 comments — Leave a comment )