![]() |
UNIX quesiton about find and exec
I have a question, I am trying to copy multiple files (with the same name) in to their own directories (multiple directories) while changing the name of the destination file. This is what I have so far:
find /home/sites/lostbush.com/htdocs/babes/*/ -name "lot.html" -exec cp {} lota.html \; The problem is that this command copies a file with the new name into the directory it is launched from, not from the same directory as the files analyzed in the find query. Does any one have a solution to this? |
| All times are GMT -7. The time now is 01:29 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123