Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-19-2005, 06:33 AM   #1
ammo325
Confirmed User
 
Join Date: Jan 2001
Location: LV Nev
Posts: 467
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?
__________________
Submit to Lostbush
ammo325 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.