After a piece of software/a bash script to mass-move files [Fedora Core 6]
Basically I have a folder with many sub folders, each containing one more sub folder and a file within that. What I need is for it to go into each of thse sub-sub folders, get the file and movie it somewhere else.
Anyone know an easy way? |
something like this will work for all files named .txt:
Code:
find . -name *.txt| xargs mv {} ./all_files_go_here \; Code:
find . -type f -exec mv {} ./all_files_go_here \; |
I'm getting an errorrr..
Quote:
Quote:
Other one worked, thanks a bunch! |
Ah, with xargs this would work:
Code:
find . -name *.txt |xargs mv --target-directory=./some_dir |
All times are GMT -5. The time now is 12:26 PM. |