GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   freebsd / linux / unix command (https://gfy.com/showthread.php?t=590365)

zentz 03-24-2006 09:59 AM

freebsd / linux / unix command
 
Is there maybe a command that will automaticly put one file in mulitple folders and subfolders ?

i have to upload a file into hundreds of folders and it would be awesome if there is an easier way then doing it 1by1 manualy.

zentz 03-24-2006 11:06 AM

bump bump

boldy 03-24-2006 11:56 AM

Code:



find /your/directory/here/ -type d -exec cp /tmp/file.ext {} \;


fuzebox 03-24-2006 11:56 AM

Yes, with some basic bash scripting. What do you need to do exactly?

fuzebox 03-24-2006 11:58 AM

n/m boldy's got it.

zentz 03-24-2006 02:03 PM

Quote:

Originally Posted by boldy
Code:



find /your/directory/here/ -type d -exec cp /tmp/file.ext {} \;


THANKS!!!


All times are GMT -7. The time now is 04:11 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123