BI-YEARLY PROGRAMMING THREAD

tr -cd 0-9

Not POSIX

What the fuck is POSIX even useful for if it doesn't have the most basic shit

Made a bash script that takes a list of handles, gets all of their tweets, sorts it by date, and converts it all to a neat XML that doesn't make newsbeuter shit its pants. Was pretty difficult debugging because I didn't know about "set -x" until I was already done (and that I've never used bash). Took me about three days of non-stop (NEET) programming (figuring out REGEX and the clusterfuck of sed/awk/grep/egrep/gawk/gsub) to finally get something I'm proud of. Got a spiffy mandoc and some options. About 350-400 lines if you remove the mandoc and newlines. Was a pretty good experience.

/blog

seed=$(date +%H%M%S)i=1modulus=$((2

Any accidental entropy-destroying flaws that cripple the random number generator and make it unsuitable for real world use were inserted in the spirit of unix by the way

Why use something so bloated? Try this one-liner that I discussed in my blog[0]:

head -10 /dev/urandom | cksum | cut -f1 -d " "

-----------------------------------------------------------------------------------------------------------
Serenity is happiness and my happiness is a bacon and egg sandwhich in the morning!
[0] blogger.programmingwiththegreats.io/blog/posts/public/february/public/01/public/posts/blog/why you should love the0dev0random0/

This answer answered my original question pretty well. BUT, command prompt tells me head or cksum or whatever cut is don't exist???

Why is this in the unix forum?

Install Gentoo.