Skip to content

Instantly share code, notes, and snippets.

@AmreeshTyagi
Last active March 22, 2018 01:29
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 AmreeshTyagi/9859cf0122fe91bf6563ae04e7e8764f to your computer and use it in GitHub Desktop.
Save AmreeshTyagi/9859cf0122fe91bf6563ae04e7e8764f to your computer and use it in GitHub Desktop.
#!/bin/bash
OUTPUT="$(ls -1)"
echo "${OUTPUT}"
#Ref: https://stackoverflow.com/questions/4651437/how-to-set-a-variable-to-the-output-from-a-command-in-bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment