Advertisement
Guest User

Untitled

a guest
Jan 27th, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. /tmp/foo% find
  2. .
  3. ./dir one
  4. ./dir one/Content
  5. ./dir one/Content/Stuff
  6. ./dir one/Content/Stuff/UpdateThis.file
  7. ./dir two
  8. ./dir two/Content
  9. ./dir two/Content/Stuff
  10. ./dir two/Content/Stuff/UpdateThis.file
  11. /tmp/foo% cat "./dir one/Content/Stuff/UpdateThis.file"
  12. baz
  13. /tmp/foo% cat "./dir two/Content/Stuff/UpdateThis.file"
  14. baz
  15. /tmp/foo% for file in */Content/Stuff/UpdateThis.file; do mv "${file}" "${file}.old"; echo qux > "${file}"; done
  16. /tmp/foo% find
  17. .
  18. ./dir one
  19. ./dir one/Content
  20. ./dir one/Content/Stuff
  21. ./dir one/Content/Stuff/UpdateThis.file.old
  22. ./dir one/Content/Stuff/UpdateThis.file
  23. ./dir two
  24. ./dir two/Content
  25. ./dir two/Content/Stuff
  26. ./dir two/Content/Stuff/UpdateThis.file.old
  27. ./dir two/Content/Stuff/UpdateThis.file
  28. /tmp/foo% cat "./dir one/Content/Stuff/UpdateThis.file"
  29. qux
  30. /tmp/foo% cat "./dir two/Content/Stuff/UpdateThis.file"
  31. qux
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement