Skip to content

Instantly share code, notes, and snippets.

@martinhj
Created March 25, 2019 19:19
Show Gist options
  • Save martinhj/6e95b42d54f57db3e5b42149e5204d4f to your computer and use it in GitHub Desktop.
Save martinhj/6e95b42d54f57db3e5b42149e5204d4f to your computer and use it in GitHub Desktop.
rerun command stored in env variable
# EXPORT COMMAND FIRST
export COMMAND="dd if=/dev/urandom of=secret.tar.bz2 bs=56724259 count=1 conv=notrunc"
# THEN
for ((n=1;n<8;n++)); do eval $COMMAND; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment