-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 9 Feb 2004 10:07:41 +0530
Devdas Bhagat <[EMAIL PROTECTED]> wrote:

> On 09/02/04 03:57 +0530, Ritesh Raj Sarraf wrote:
> <snip>
> > I've got a main file HEADER.html at my base directory (i.e. 
> > /mnt/ftp/pub/extra/ricky/documentation) which I want to be 
> > symbolically linked to all the directories and sub-directories under 
> > my base directory.
> This doesn't make sense. You cannot link a single file to multiple
> files.
> You could create an index file with all the directories.
> 
> > Note: The directories and sub-directories under my base directory
> > contains mostly .html files of Soft Books.
> > 
> > I've been trying with the following command but haven't succeded yet. :-(
> > 
> > # Script
> > for foo in */*
> > do
> >     if [ -d $foo ]
> >     then
> >             cd $foo;
> >             ln -s /mnt/ftp/pub/extra/ricky/documentation/HEADER.html HEADER.html;
> >     fi
> > done
> > # Script
> find /mnt/ftp/pub/extra/ricky/documentation/ -type d > index.txt
> 
> Devdas Bhagat
> 

Well! Thanks for the replies. But I've already got my work done.
Sandeep helped me figure it out. It goes this way:
find . -type d -mindepth 1 -exec ln -f -s `pwd`/HEADER.html {} / \;

Cheers!
rrs
- -- 
Ritesh Raj Sarraf
RESEARCHUT (www.researchut.com)
Happy GNU/Linux user since 1998
- ------
lp1 on fire
        -- One of the more obfuscated kernel messages
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAJ7sx4Rhi6gTxMLwRAtUfAKCNgxLzAhasIQR0v7M+DpmGL4xBPACaAlTS
kjoACxEciK8auYV3DPHaWFI=
=OXBu
-----END PGP SIGNATURE-----


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to