Archive for December, 2005

Resolution for 2006

Saturday, December 31st, 2005

More exercise!
Tweet This Post  Facebook 

Using sed to get lines in a file

Saturday, December 24th, 2005

I always seem to forget how to do this. Next time I forget, will just visit this page.
Use it like this. Say, for example, you want lines 30-60 of a file (inclusive).

$ sed -n ‘30,60p’ file.txt

Tweet This Post  Facebook 


Tweet This Post links powered by Tweet This v1.4.1, a WordPress plugin for Twitter.