SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. read -p "Path to file: " p
  2. dirn=$(dirname "$p")
  3. file=$(basename "$p")
  4. echo "dirn=$dirn, file=$file"
  5. cd "$dirn"
  6. ls -ld "$file"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top