Skip to content

Instantly share code, notes, and snippets.

@classmember
Created August 20, 2017 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save classmember/306351a09fa1b33b6a33a811470131b6 to your computer and use it in GitHub Desktop.
Save classmember/306351a09fa1b33b6a33a811470131b6 to your computer and use it in GitHub Desktop.
#!/bin/bash
# parse echo command using Perl with
# many calls to the "${RANDOM}" internal bash function
# redirect command to a bash session
bash<<<$(
perl -e '
print "echo ";
print "\$\{RANDOM\}"'x40
)
# example output:
# 1913125751134511502516993300443186813048251851193246283101528711149237831871130011961019790158752471616284165121788716080246479001240219575119553261592116383126012707185188358125851407021671
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment