Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. find . -maxdepth 1 -type f -exec mv {} destination_path ;
  2.  
  3. for file in * .*
  4. do
  5. test -f "$file" && mv "$file" "$HOME"/
  6. done
  7.  
  8. find . -maxdepth 1 -type f -name '*' -exec mv -n {} /destination_path ;
  9.  
  10. find /source_path -maxdepth 1 -type f -name '*' -exec mv -n {} /dest_path ;
  11.  
  12. find . -maxdepth 1 -type f -name '[!.]*' -exec mv -n {} /dest_path ;
  13.  
  14. find . -maxdepth 1 -type f -name '.*' -exec mv -n {} /dest_path ;
  15.  
  16. find * -maxdepth 1 -type f -exec mv {} ~ ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement