2 ms·
Instead of for n in {1..456977}; do echo a >> input.txt; done you could do yes | head -n 456977 > input.txt On my system the latter is ~500 times faster
by jwilk 9y ago
Instead of
for n in {1..456977}; do echo a >> input.txt; done
you could do
yes | head -n 456977 > input.txt
On my system the latter is ~500 times faster.