Sunday, February 28, 2010

Sed Command VS Head Tail

Well for past few months i was using the head and tail command to look into desired line inside a file... which works like this

If i want to see line number 45 from filename.txt than,

$head -45 filename.txt | tail -1

which is bit complex, but we can also use sed command(stream editor) for it, which goes like this,

$sed -45 filename.txt

Author
Waqas Rafi

4 Comments:

John said...

Nice Information Technology Blog.
- Offshore Software Development

Unknown said...

really amazing information sharing and i just like your blog because of informative content.
- Restaurants in Ahmedabad

Anonymous said...

it was just amazing information sharing and I appreciate your blog because of unique content so thanks for that.
- Alternative Medicine

Ecommerce website developer said...

Well, we will try out.. Thanks for sharing the useful information with us. It is great to share the knowledge and information with others. Thanks

Disclaimer: Independent operated blog, feed backs at kaxxi.khan@gmail.com
© copyright 2011 info-logy.blogspot.com