Hello everyone,
Just joined this list and I have a doozie I've been working on for a bit here to no avail. The entire problem is this; I have a list of files, say that they are named "flynn.foo, flynn_something.foo, flaherty.foo flaherty_something.foo" and so forth. Each of these files must live(be moved to) an individual directory named for the author(flynn, flaherty, etc) and then be symlinked to an entirely different directory in another part of the filesystem identical to the first one(flynn, flaherty...) If I was doing this on the command line I'd do

cp /usr/blah/flaherty.foo /usr/blah/blahagain/flaherty/ &&
ln -s /usr/blah/blahagain/flaherty/flaherty.foo /usr/blah/ blahoncemore/flaherty.foo

So far I've gotten to the point where I can strip out the names from the files and create the two sets of directories, but I'm stumped on how to them copy each of these files into the correct directory and then symlink from the storage directory to the other name directory. Now I know how to copy files and symlink files with perl, but the logic involved in doing this to 30 files is beyond me at the moment. Anyone have a clue?
Thanks,
Tom

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to