You are viewing labyrinthman

Previous Entry | Next Entry

sed

animated black mage
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.

Tags:

Comments

( 7 comments — Leave a comment )
sinvokasha
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
labyrinthman
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. ;)

subdermal
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 :/
subdermal
Jan. 21st, 2009 07:34 pm (UTC)
Although frankly for your issue I probably would have just used tail -n +18000000 ;)
labyrinthman
Jan. 21st, 2009 07:38 pm (UTC)
*facepalm*

That would work too.
zastrazzi
Jan. 21st, 2009 07:55 pm (UTC)
*nix, allowing friends to be bastards to each other in at least 5 different ways :)
labyrinthman
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 )

Profile

animated black mage
labyrinthman
Some guy in a maze

Latest Month

October 2014
S M T W T F S
   1234
567891011
12131415161718
19202122232425
262728293031 
Powered by LiveJournal.com