ich mit ~ 800.000 E-Mail eine .txt
-Datei, die wie folgt aussieht:eine TXT-Datei Shuffle zufällig
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
.
.
.
Mein Ziel ist es, diese Datei zu ändern, damit es so aussieht:
[email protected], [email protected], [email protected], [email protected]
[email protected], [email protected]
[email protected], [email protected]
[email protected], [email protected], [email protected]
[email protected], [email protected]
[email protected], [email protected]
[email protected], [email protected], [email protected]
.
.
.
Was ich will ist eine zufällige Anzahl von E-Mails pro Zeile, getrennt durch Kommas oder Leerzeichen. Ich wollte eigentlich kein Programm schreiben, da ich gehört habe, dass es möglich ist, bestimmte Shell-Befehle für diese Art von Arbeit zu verwenden. Ist das möglich und wenn ja, wie würde ich das erreichen?
Jede Zeile der Datei entspricht einer anderen Benutzerliste von Freunden. Jede Person hat eine zufällige Anzahl von Freunden. –
Warum also nicht 3 oder 4 E-Mails pro Zeile? – anubhava
Ich denke, ich könnte das tun, aber wäre es nicht seltsam (vom realen Leben), dass jeder einzelne dieser Leute genau 4 Freunde hat? Zum Beispiel kann ich 4 Freunde haben, aber Bob kann 10 Freunde haben. –