Timeline for Is there a faster way to remove a line (given a line number) from a file?
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 4, 2013 at 18:10 | comment | added | alexis | See my answer for an example. | |
| Mar 4, 2013 at 18:03 | comment | added | Joseph R. | @alexis: not sure how that would go. | |
| Mar 4, 2013 at 17:59 | comment | added | alexis | Run perl with the -i flag and it will do it in situ for you! | |
| Mar 3, 2013 at 20:34 | history | edited | Stéphane Chazelas | CC BY-SA 3.0 | typo |
| Mar 3, 2013 at 20:33 | comment | added | Stéphane Chazelas | undef $/ means the rest of the file will be slurped in memory which for a 50 GB file is probably not a good idea, and probably won't be much more efficient than say using $/ = \32768 and a loop. | |
| Mar 3, 2013 at 19:13 | history | answered | Joseph R. | CC BY-SA 3.0 |