Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cp -n [src] [dst]
- -n, --no-clobber
- do not overwrite an existing file (overrides a previous -i option)
- src=from.txt
- dst=to.txt
- [[ -f "$dst" ]] && cp -fp "$src" "$dst"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement