Horje
present working directory in shell script Code Example
present working directory in shell script
#!/bin/bash
echo "Script executed from: ${PWD}"

BASEDIR=$(dirname $0)
echo "Script location: ${BASEDIR}"




Shell

Related
git reset hard for remote Code Example git reset hard for remote Code Example
kubectl create namespace Code Example kubectl create namespace Code Example
node number id generator Code Example node number id generator Code Example
create new docker image from existing Code Example create new docker image from existing Code Example
git check if commit in master Code Example git check if commit in master Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9