cat /usr/share/dict/words | grep bob | shuf | head -1 | \ parallel open https://en.wiktionary.org/w/index.php?title={}
The (notionally) more portable — and less abusive of felines — method would be something like:
grep bob /usr/share/dict/words | shuf -n 1 | \ xargs -I {} curl https://en.wiktionary.org/w/index.php?title={}
Thankfully, shuf lets you limit the amount of lines output ...meaning you can save yourself the scads of resources of calling head! =)
shuf
head
Or, if you want to avoid helpers like xargs or parallel altogether:
xargs
parallel
curl "https://en.wiktionary.org/w/index.php?title=$( grep bob /usr/share/dict/words | shuf -n 1 )"
If you're going to abuse a cat, do so by trying out multiple skinning-methods. =)
cat
All very true, and very good!
If you're going to abuse a cat, do so by trying out multiple skinning-methods.
🤣
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The (notionally) more portable — and less abusive of felines — method would be something like:
Thankfully,
shuf
lets you limit the amount of lines output ...meaning you can save yourself the scads of resources of callinghead
! =)Or, if you want to avoid helpers like
xargs
orparallel
altogether:If you're going to abuse a
cat
, do so by trying out multiple skinning-methods. =)All very true, and very good!
🤣