Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- read -p "Enter target directory: " target_dir
- cp some/file.txt $target_dir/exists/for/sure/
- ./my_script.sh
- Enter target directory: ~/my_dir
- cp: directory ~/my_dir/exists/for/sure/ does not exist
- cd ~/my_dir/exists/for/sure/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement