Created
January 16, 2013 23:06
-
-
Save ashrithr/4551843 to your computer and use it in GitHub Desktop.
double variable expansion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#expand cmd line variable hadoop and replace it with local var hadoop | |
hadoop=/home/hadoop | |
ls -al ${!1} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment