Skip to content

Instantly share code, notes, and snippets.

@orenteriab
Created July 20, 2015 20:10
Show Gist options
  • Select an option

  • Save orenteriab/3d1f2b257bfacbf3a3c9 to your computer and use it in GitHub Desktop.

Select an option

Save orenteriab/3d1f2b257bfacbf3a3c9 to your computer and use it in GitHub Desktop.
#!/bin/sh
function saveFileLocation(){
echo $(pwd)/$@;
}
#usage:
#> x=`saveFileLocation file.name.extension`
#> cd /another/folder/away/from/folder
# several operations right after that
#> cat other.file.extension >> $x;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment