Simple BASH script
Budget: €8 – €30 EUR
Hello,
I'm looking for an experienced developer in BASH to do a simple script.
So I explain, I have a folder containing several text files with email addresses inside (example in the folder france I have several files: fr1.txt / fr2.txt / fr3.txt)
I want a script in BASH that browses the folder I would have chosen as well as the email domains I want as well as the number of lines I want (randomly choose the mails) for example here is the command :
bash script.sh "france" "live.fr" "5000" "new1.txt"
So the script will go through the folder "france" and will extract 5000 mails that end with live.fr and will place these 5000 mails in a new file "new1.txt", it is necessary that when the script takes the mails in the folder france it cuts the mails and does not leave them in the folder so CUT not COPY the mails.
I'm looking for an experienced developer in BASH to do a simple script.
So I explain, I have a folder containing several text files with email addresses inside (example in the folder france I have several files: fr1.txt / fr2.txt / fr3.txt)
I want a script in BASH that browses the folder I would have chosen as well as the email domains I want as well as the number of lines I want (randomly choose the mails) for example here is the command :
bash script.sh "france" "live.fr" "5000" "new1.txt"
So the script will go through the folder "france" and will extract 5000 mails that end with live.fr and will place these 5000 mails in a new file "new1.txt", it is necessary that when the script takes the mails in the folder france it cuts the mails and does not leave them in the folder so CUT not COPY the mails.