#!/bin/bash
cd "$(dirname "$0")"
More Related Contents:
- How do I tell if a regular file does not exist in Bash?
- How do I parse command line arguments in Bash?
- Correct Bash and shell script variable capitalization
- How do I compare two string variables in an ‘if’ statement in Bash? [duplicate]
- Why equal to operator does not work if it is surrounded by space?
- Execute command on all files in a directory
- sudo echo “something” >> /etc/privilegedFile doesn’t work [duplicate]
- How can I declare and use Boolean variables in a shell script?
- Test for non-zero length string in Bash: [ -n “$var” ] or [ “$var” ]
- Convert absolute path into relative path given a current directory using Bash
- How to iterate over an array using indirect reference?
- How to simulate the environment cron executes a script with?
- How can I suppress all output from a command using Bash?
- Remove the last line from a file in Bash
- Bash script – store stderr in a variable [duplicate]
- Wait for a process to finish
- Recursively rename files using find and sed
- How to get a password from a shell script without echoing
- How do I edit $PATH (.bash_profile) on OS X?
- How to obtain the absolute path of a file via Shell (BASH/ZSH/SH)?
- Copy folder recursively, excluding some folders
- Passing arguments by reference
- Get just the filename from a path in a Bash script [duplicate]
- Running a Bash script over ssh
- How to resolve symbolic links in a shell script
- How can I shortern my command line prompt’s current directory?
- bash script order of execution
- Extract version number from a string
- find difference between two text files with one item per line [duplicate]
- What does `kill -0 $pid` in a shell script do?