It's pronounced Diane. I do data architecture, operations, and backend development. In my spare time I maintain Massive.js, a data mapper for Node.js and PostgreSQL.
I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
I don't have sort -R or shuf (I'm on OS X). I did not know you could do the dot precision thing with integers! My solution was basically the same, but I did "%04d\n"
It's pronounced Diane. I do data architecture, operations, and backend development. In my spare time I maintain Massive.js, a data mapper for Node.js and PostgreSQL.
Bash:
for i in {0..9999}; do printf "%04d\n" $i; done | sort -R > pins.txtShorter:
seq -w 9999 | shuf > pins.txtUsing
shufutility for shuffling:for i in {0..9999}; do printf "%.4d\n" $i; done | shuf > pins.txtThe two scripts are equivalent as the
man sortpage tells that-Roption usesshuf.I don't have
sort -Rorshuf(I'm on OS X). I did not know you could do the dot precision thing with integers! My solution was basically the same, but I did"%04d\n"You can get
gshufif you install the GNUcoreutilsthrough homebrew or ports.Ahh, there we go _^