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/
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
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
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
$
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/
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