Deleting lines from the text file

2010-06-01 177 words 1 min read

Really useful for pretty big <a class="zem_slink freebase/en/computer_file" title="Computer file" rel="wikipedia" href="">files.

<a class="zem_slink freebase/en/sed" title="Sed" rel="wikipedia" href="">sed –silent &#8217;1,100 d&#8217; <a class="zem_slink freebase/en/filename" title="Filename" rel="wikipedia" href="">filename

here the command will delete the first 100 lines. You can specify whatever range you want. This will not delete the lines from the file but only display the contents on the console after deleting the 100 lines from begining.

If you want to store it in different file then you can use &#8221;>&#8221; or &#8221;»&#8221;<h6 class="zemanta-related-title">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="">Guhmshoo Looks at Quit Facebook Day (cartoon) ( <li class="zemanta-article-ul-li"><a href="">Sometimes it&#8217;s just Windows … ( <li class="zemanta-article-ul-li"><a href="">2 Ingenious Apps To Help Organize Files and Folders On Your Mac ( <li class="zemanta-article-ul-li"><a href="">Simple Solutions to Common Windows Problems ( <li class="zemanta-article-ul-li"><a href="">Blu Ray/DVD/CD Data file recovery software (free) to recover damaged files ( <li class="zemanta-article-ul-li"><a href="">Get rid of GNOME keyring password reminder ( <div class="zemanta-pixie"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href=""><img class="zemanta-pixie-img" src="" alt="Reblog this post [with Zemanta]" /><span class="zem-script more-related more-info pretty-attribution paragraph-reblog">


Authored By Amit Agarwal

Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.

We notice you're using an adblocker. If you like our webite please keep us running by whitelisting this site in your ad blocker. We’re serving quality, related ads only. Thank you!

I've whitelisted your website.

Not now
This website uses cookies to ensure you get the best experience on our website. Learn more Got it