Sunday, May 20, 2012

Delete N number of lines from a file on Linux

$ sed -i 'starting_line_no, end_line_no d' file_name

$ sed -i '1,5d' test.txt

The above command will delete first 5 lines from 'test.txt' file.

4 comments:

Anonymous said...

michael kors outlet, oakley pas cher, coach outlet, air force, ray ban uk, nike blazer, true religion jeans, true religion jeans, replica handbags, abercrombie and fitch, michael kors outlet, sac guess, michael kors, ugg boots, lacoste pas cher, hollister pas cher, converse pas cher, north face, michael kors outlet, timberland, lululemon, michael kors, michael kors, ray ban pas cher, nike air max, hogan, ugg boots, nike air max, coach purses, michael kors outlet, burberry outlet online, burberry, tn pas cher, ralph lauren uk, coach outlet, vanessa bruno, true religion jeans, new balance pas cher, nike air max, nike free run uk, nike roshe, hermes, hollister, true religion outlet, michael kors outlet, mulberry, north face, michael kors, kate spade handbags, vans pas cher

Anonymous said...

beats by dre, lululemon, vans, nike trainers, reebok shoes, ghd, giuseppe zanotti, nfl jerseys, soccer shoes, longchamp, gucci, soccer jerseys, louboutin, babyliss, mac cosmetics, nike air max, nike air max, celine handbags, converse outlet, iphone cases, herve leger, nike roshe, wedding dresses, oakley, chi flat iron, ralph lauren, north face outlet, lancel, ray ban, birkin bag, timberland boots, valentino shoes, instyler, hollister, ferragamo shoes, hollister, new balance, mcm handbags, jimmy choo shoes, insanity workout, north face outlet, asics running shoes, vans shoes, bottega veneta, abercrombie and fitch, baseball bats, hollister, p90x workout, nike huarache, mont blanc

Anonymous said...

cheap golden goose
kyrie 9
nike off white
nba star shoes
off white

ايكو قلب متنقل said...

I love the podcasts available on this site.