Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. cp -n [src] [dst]
  2.  
  3. -n, --no-clobber
  4. do not overwrite an existing file (overrides a previous -i option)
  5.  
  6. src=from.txt
  7. dst=to.txt
  8.  
  9. [[ -f "$dst" ]] && cp -fp "$src" "$dst"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement