Can't you cat it to another file, and "grep -v the line that you want to get rid of" ?
Hello,
I created a wordlist.txt using crunch and its size is 1.3 GB. The problem is I cannot
open it in backtrack 5 R2 (it closes midway) nor in Windows in wordpad (it hangs).
I want to make some changes in the file for eg. remove the line
"Crunch will now generate the following amount of data". How do I open
this file?
Note: The file cannot open in Notepad, Notepad++. It does open in Large
Text Viewer but that is read-only mode.
Please help
Having knowledge is one thing and applying that knowledge to earn money (of course, legally) is a completely different thing...
Can't you cat it to another file, and "grep -v the line that you want to get rid of" ?
So the reason for you wanting to edit the file is simply to delete the first few lines ?
(you could have used the -u switch in crunch to prevent the info on file from being mentioned..)
You can do this straight from the command line without needing to open the whole file.
To check the first few lines why not start by doing ;
Or as you already mentioned, open using LTFviewer which will open the file (read only) without any problemCode:head -n 10 wordlist.txt
and check which lines you want removed.
Then just use sed or the like to remove the number of lines you want removed.
to delete 1st line only;
To delete 1st, 2nd & 3rd line ;Code:sed '1d' -i wordlist.txt
To delete the first 10 lines ;Code:sed '1,3d' -i wordlist.txt
Do a google for 'sed one liners' to get more info on easy sed commands.Code:sed '1,10d' -i wordlist.txt
Having knowledge is one thing and applying that knowledge to earn money (of course, legally) is a completely different thing...
No problem. Glad you got it sorted.