On Mon, Feb 09, 2004 at 03:57:25AM +0530, Ritesh Raj Sarraf wrote: > 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. > 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 > > Am I doing the right way ?
You have missed a "cd .." after the work. Also, you better error-check the cd command - else disaster :) If you are doing this for apache, there is a far, far better way: RewriteEngine On RewriteRule /.*/(HEADER.html)$ /$1 Binand -- [EMAIL PROTECTED] root]# uptime 11:55am up 58 days, 4:49, 2 users, load average: 1023.78, 419.92, 158.90 ------------------------------------------------------- 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
