This is the FAQ for the article entitled Huge Text File, Need to Extract Specific Lines? Here's How. Working examples and more detailed information for each of these commands is available through that link. All these commands work in the Linux terminal, some of them will work in the Windows command line. When using sed, add a "-i" switch and do not specify a destination file if you want the changes to be applied to the source file without producing a backup. For example: sed -i 's/StringToTeplace/ReplacementString/g' source.txt Would work directly inside source.txt without creating a … [Read more...]
Huge Text File, Need to Extract Specific Lines? Here's How
If like me, you have to manipulate huge text files containing thousands of lines of data and you hate trawling through them manually, slowly, one-by-one, line-by-line then boy do I have a few tricks to teach you. These tricks of mass manipulation of text files will turn your week long, heart-wrenching job into a 5 minute heart-lifting pleasure bordering on the orgasmic [just trying to liven things-up]. I used to export and paste my text files into an Open Office spreadsheet then sort them before cutting and pasting. Doing so used to cut in half the time taken to edit my text files. I … [Read more...]

