Re: multiple links with single ln command

2006-06-28 Thread Giorgos Keramidas
On 2006-06-27 14:14, sara lidgey [EMAIL PROTECTED] wrote: Hi All, I've read the man page for ln but can't find a way to do this. I want to create multiple links to a single directory with one command. Consider the following example. I have a directory structure like this: test/a/

Re: multiple links with single ln command

2006-06-28 Thread sara lidgey
Thanks for all the ideas. They are very helpful. -S Brian O'Shea [EMAIL PROTECTED] wrote: It can be done with a shell for-loop: $ mkdir a b c $ for dir in a b ; do (cd $dir ; ln -s ../c clink) ; done But this is technically not a single command, and it assumes that you are using the Bourne

multiple links with single ln command

2006-06-27 Thread sara lidgey
Hi All, I've read the man page for ln but can't find a way to do this. I want to create multiple links to a single directory with one command. Consider the following example. I have a directory structure like this: test/a/ test/b/ test/c/ I want to create a symbolic link called clink in

Re: multiple links with single ln command

2006-06-27 Thread Brian O'Shea
Unfortunately, it is impossible with the current syntax of the ln command. It does allow you to specify multiple sources as arguments though, with a final argument naming a target directory in which to create the links to the source files. For example: $ mkdir test $ mkdir test/a $

Re: multiple links with single ln command

2006-06-27 Thread Paul Chvostek
Hiya. On Tue, Jun 27, 2006 at 02:14:22PM -0400, sara lidgey wrote: I've read the man page for ln but can't find a way to do this. I want to create multiple links to a single directory with one command. Consider the following example. I have a directory structure like this: test/a/

Re: multiple links with single ln command

2006-06-27 Thread Brian O'Shea
It can be done with a shell for-loop: $ mkdir a b c $ for dir in a b ; do (cd $dir ; ln -s ../c clink) ; done But this is technically not a single command, and it assumes that you are using the Bourne Shell (/bin/sh) or a Bourne-compatible shell (ksh, zsh, bash, etc.). If you are a csh or tcsh