Created
December 7, 2013 18:05
-
-
Save cowboy-cod3r/7846306 to your computer and use it in GitHub Desktop.
Bash: File/Folder Functions
This file contains 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
# Get the current file | |
current_file = $0 | |
# Get the full path to the current file | |
full_file_path="$(readlink -f $(dirname $0))/$(basename $0)" | |
# Get the full directory path to the current file | |
full_dir_path="$(readlink -f $(dirname $0))" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment