Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dateien linken
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
monocult
n00b
n00b


Joined: 12 Oct 2003
Posts: 23
Location: Hennef/Bonn

PostPosted: Fri Aug 27, 2004 9:46 am    Post subject: Dateien linken Reply with quote

ich hab da ein kleines Problem :-(
ich möchte alle Dateien eines Verzeichnisses + die in Unterverzeichnissen in ein anderes Verzeichnis an die richtige stelle velinken.

und zwar hab ich einen IPAQ mit Familiar Linux.
da hab ich nun die Möglichkeit Programme ins RAM zu Installieren. Diese müssen dann aber ins / Verzeichnis gelinkt werden.

da heißt ich möchte /mnt/ramfs/* nach / linken.

Ich weiß aber lediglich wie man einzelne links erstellt oder eben alle Dateien eines Verzeichnisses verlinkt.

vielleicht hat hier ja jemand ne einfache Lösung.
Back to top
View user's profile Send private message
dakjo
Veteran
Veteran


Joined: 31 Jan 2004
Posts: 1544

PostPosted: Fri Aug 27, 2004 11:17 am    Post subject: Reply with quote

Schau doch mal hier linuxfibel.de.
_________________
'Dieselben Naturkräfte, die uns ermöglichen, zu den Sternen zu fliegen, versetzen uns auch in die Lage, unseren Stern zu vernichten.' - Wernher von Braun
http://www.mpsna.de
Back to top
View user's profile Send private message
monocult
n00b
n00b


Joined: 12 Oct 2003
Posts: 23
Location: Hennef/Bonn

PostPosted: Fri Aug 27, 2004 12:41 pm    Post subject: Reply with quote

dakjo wrote:
Schau doch mal hier linuxfibel.de.


woher wuste ich nur das sowas komt :-/

ich hab mir da jetzt volgendes gebaut
Code:

for i in `find /home/monocult/test/test1 -type f`; do
   for n in `echo $i  | sed 's/\/home\/monocult\/test\/test1/home\/monocult\/test\/test2/'`; do
   ln -s $i /$n
done
done


allerdings werden dabei keine verzeichnise angelegt vieleicht hast du ja jetzt noch nen Tip für mich auser z.b.
http://www.physik.rwth-aachen.de/group/IIIphys/compute/kurs/node69.html
Back to top
View user's profile Send private message
Deever
Veteran
Veteran


Joined: 06 Jul 2002
Posts: 1354
Location: Zürich / Switzerland

PostPosted: Fri Aug 27, 2004 6:06 pm    Post subject: Reply with quote

monocult wrote:
ich hab mir da jetzt volgendes gebaut

Ui!

Quote:
Code:
for i in `find /home/monocult/test/test1 -type f`; do
   for n in `echo $i  | sed 's/\/home\/monocult\/test\/test1/home\/monocult\/test\/test2/'`; do
   ln -s $i /$n
done
done

Uiuiui!! ;)

Quote:
allerdings werden dabei keine verzeichnise angelegt vieleicht hast du ja jetzt noch nen Tip für mich auser [...]

Ja, 'man cp', Option '-s'!

Gruß && HTH!
/dev
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum