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
Sunday, February 28, 2010
Sed Command VS Head Tail
Subscribe to:
Post Comments (Atom)
4 Comments:
Nice Information Technology Blog.
- Offshore Software Development
really amazing information sharing and i just like your blog because of informative content.
- Restaurants in Ahmedabad
it was just amazing information sharing and I appreciate your blog because of unique content so thanks for that.
- Alternative Medicine
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
Post a Comment