Advertisement
Guest User

Untitled

a guest
Sep 30th, 2014
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. ( cd ~/project/u-name-it; cp_or_mv file ver1-file )
  2.  
  3. base=base-path cp_or_mv $base/file $base/ver1-file
  4.  
  5. # Untested, test well before using; should work in zsh & bash IFIAC
  6. # usage:
  7. # bup directory [files...]
  8. function bup
  9. {
  10. local dir=$1
  11. shift
  12. for file; do
  13. cp $dir/$file $dir/ver1-$file
  14. done
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement