a guest Jan 22nd, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- read -p "Path to file: " p
- dirn=$(dirname "$p")
- file=$(basename "$p")
- echo "dirn=$dirn, file=$file"
- cd "$dirn"
- ls -ld "$file"
RAW Paste Data