
February 24th, 2006, 06:35 AM
|
|
Contributing User
|
|
Join Date: Sep 2003
Location: Cardiff, Wales
Posts: 110
Time spent in forums: 13 h 22 m 40 sec
Reputation Power: 6
|
|
|
Link a single file to many directories
Hi all,
I'm fairly new to unix (well using more advanced commands anyway).
One question I have is that I have a whole bunch of directories that I need to soft link to a file in the parent directory. I tried to do something like,
Code:
ln ./TAPE3 ./*/TAPE3
but the wildcard doesn't work.
I've seen the foreach command in the c-shell, but to be honest I have no idea how to get this to list the directories, and then create the soft links?!?!
Any help is much appreciated.
Thanks, Lloyd.
|