fortune(6) and specifically the "freebsd-tips" dataset in /usr/share/games/fortune/freebsd-tips{.db}
thanks, no "worst" way btw, just some better ways perhaps?Not tested it but...
for i in `seq 5000`; do fortune; done | sort -u > tips.txt
That is likely to get most of them.
(note this is probably the worst way to do it)
for i in `seq 5000`; do fortune freebsd-tips; done > tips.txt works ok but could be formatted better.(one of the more obtuse manpage descriptions I have seen in a while)-u, --unique output only the first of lines with equal keys; with -c, check for strict ordering
So this should run the fortune command 5000 times, and for each output, only store it in tips.txt if it is unique. Otherwise you would end up with loads of duplicates.What were you hoping sort -u would provide?