Would be nice to do something like ``` npx faker -n 100 email > emails.txt cat emails.txt | sort ```
Activity
xDivisionByZerox commentedon Jan 5, 2026
You can achieve this by other shell commands.
Workaround (as a one liner):
Explanation
for i in {1..100}; do ...; done- loops for 100 iterationsfaker email |- creates a random email using faker and pipes the output to the next commandsed 's/$/\n/'- append a new line character to the output, to separate the emails by line>> emails.txt- append the final result to the file "emails.txt"