OK, basic Linux stuff. Something like this (untested so you may have to tweak)
Change the A to lowercase if you want lowercase. You could also do this with sed, perl, ruby, python, etc.Code:awk '{print "A" $1}' wordlist.txt > newwordlist.txt
I have a word list and I want to add an uppercase "A" to the beginning of each line.
example:
Before -
12345678
adamhick
bettysue
carlatoo
After -
A12345678
Aadamhick
Abettysue
Acarlatoo
an option for U/C and L/C would be cool. but only a bonus!![]()
OK, basic Linux stuff. Something like this (untested so you may have to tweak)
Change the A to lowercase if you want lowercase. You could also do this with sed, perl, ruby, python, etc.Code:awk '{print "A" $1}' wordlist.txt > newwordlist.txt
Capitalisation is important. It's the difference between "Helping your brother Jack off a horse" and "Helping your brother jack off a horse".
The Forum Rules, Forum FAQ and the BackTrack Wiki... learn them, love them, live them.
or ask a canadian!
open source = open minds, human knowledge belongs to the world
Capitalisation is important. It's the difference between "Helping your brother Jack off a horse" and "Helping your brother jack off a horse".
The Forum Rules, Forum FAQ and the BackTrack Wiki... learn them, love them, live them.
A SED example:
Code:sed 's|^|A|g' ./wordlist.txt > newwordlist.txt
Not only are you guys hilarious at times (I didn't see that one coming, eh?), but you're all (mostly) really smart. I try to answer the newb questions, being a newb myself it feels good when I can, so it's really nice to get answers to my linux 101 questions. So thanks!
ps. I always google my problems for hours before deciding to make a post about it.![]()
Capitalisation is important. It's the difference between "Helping your brother Jack off a horse" and "Helping your brother jack off a horse".
The Forum Rules, Forum FAQ and the BackTrack Wiki... learn them, love them, live them.
Thanks Lupin and friends, it worked like a charm!
![]()
Thank you Lupin. I didn't know that was possible (its going to safe me a lot of hassel)
Out of interest is there a switch for it in grep?
Many Thanks,
Sprouty