Bash Scripting Problem

Jan-Benedict Glaw jbglaw at lug-owl.de
Mon May 24 16:29:33 CEST 2004


On Mon, 2004-05-24 16:23:32 +0200, Florian Schwarz <floh at linland.de>
wrote in message <40B20564.4020009 at linland.de>:
> Hallo Liste,
> 
> ich möchte per Script ein Verzeichnis B erstellen, in dem Links auf alle 
> Unterordner von Verzeichnis A enthalten sind. Mein Ansatz:
> 
> - snip -
> for i in `find . -type d -maxdepth 1 -printf "%f\n"`
> do
> 	ln -sf $i $TARGET/$i
> done
> - snap -

find . -type d -maxdepth 1 -exec ln -sf {} $TARGET/{} \;

MfG, JBG

-- 
   Jan-Benedict Glaw       jbglaw at lug-owl.de    . +49-172-7608481
   "Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg
    fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!
   ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lug-owl.de/pipermail/linux/attachments/20040524/40b3419f/attachment.sig>


More information about the Linux mailing list