Htich Posted December 1, 2014 Report Posted December 1, 2014 Un mic hint cum pot sa "salvez" domeniu de la ionCuvaca@yahoo.com , dintr-o lista ? Adica sa am doar yahoo.com...sau ce domeniu doresc.Am vazut sapt asta un post asemator dar nu il mai gasesc , daca mi se ofera raspunsul cum sa salvez dintr-o lista doar domeniul de la email , rog un admin/moderator sa mi se stearga .// Logic dupa ce aflu raspunsul Quote
aelius Posted December 1, 2014 Report Posted December 1, 2014 (edited) 1. SolutiePentru a le vedea:awk -F "@" '{print $2}' lista.txtPentru a le salva:awk -F "@" '{print $2}' lista.txt > domenii.txt2. ExempluAm o lista:marian@hp:~$ cat lista.txt ion@hotmail.comgeorge@usinternet.comvasile@yahoo.comVreau sa vad doar domeniile:marian@hp:~$ awk -F "@" '{print $2}' lista.txthotmail.comusinternet.comyahoo.comVreau sa salvez domeniile in fisierul domenii.txt:marian@hp:~$ awk -F "@" '{print $2}' lista.txt > domenii.txtAu fost salvate:marian@hp:~$ cat domenii.txt hotmail.comusinternet.comyahoo.com Edited December 1, 2014 by aelius Quote
Htich Posted December 1, 2014 Author Report Posted December 1, 2014 @aelius , poti sa imi stergi topicul.//Multumesc! Quote
blech Posted December 2, 2014 Report Posted December 2, 2014 cum zice Tex dar mai adaugam ceva...awk -F "@" '{print $2}' | sort | unique > lista.txt Quote
aelius Posted December 2, 2014 Report Posted December 2, 2014 cum zice Tex dar mai adaugam ceva...awk -F "@" '{print $2}' | sort | unique > lista.txtAi un pipe acolo in loc de argumentawk -F "@" '{print $2}' | sort --unique > lista.txt Quote
blech Posted December 2, 2014 Report Posted December 2, 2014 da...m-am grabit ca sunt la munca... asa este cum zice Tex... ce am scris eu si corectat de Tex iti scoate o singura data fiecare domeniu si le sorteaza. Quote
gipsy Posted December 2, 2014 Report Posted December 2, 2014 Advanced Mass Sender 4.3 mai face asta. Uploadezi o lista mare in el si apoi dai 'Sorting by Domain' si iti face un folder cu toate domeniile fiecare in .txt-ul lui. Quote
Htich Posted December 2, 2014 Author Report Posted December 2, 2014 (edited) de ce sa folosim programe , cand comenzile de linux sunt de 1000 de ori mai simple ... // Orcum multumesc pt. idee! Edited December 2, 2014 by Htich Quote