Friday, August 19, 2011

GOTO specific line number in linux/unix

Moving to a specific line number and display its content in unix/linux


sed -n '199 p' somefile

 The above line of code will display the contents of line number 199 on screen.

Have fun :)


Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | fantastic sams coupons