Skip to content

Instantly share code, notes, and snippets.

@akashnimare
Created June 7, 2016 23:01
Show Gist options
  • Save akashnimare/4fe718442212bff8ef76c82b767d6893 to your computer and use it in GitHub Desktop.
Save akashnimare/4fe718442212bff8ef76c82b767d6893 to your computer and use it in GitHub Desktop.
Variable in Shell/Alias
Here is a simple demo function showing how to use variable in an alias.
show(){
ls *.$1;
}
Use it like - show variablename
Example - show png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment