Skip to content

Instantly share code, notes, and snippets.

@ashrithr
Created January 16, 2013 23:06
Show Gist options
  • Save ashrithr/4551843 to your computer and use it in GitHub Desktop.
Save ashrithr/4551843 to your computer and use it in GitHub Desktop.
double variable expansion
#!/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