for i in "find adresar -type f -mtime +0"; do ln -s ${i} /kam/chci/linkydone
no a co mas teda? co treba takto?Kód: [Vybrat]for i in "find adresar -type f -mtime +0"; do ln -s ${i} /kam/chci/linkydone
find adresar -type f -mtime +0" -print0 | xargs -0 -I {} ln -s {} /kam/chci/linky
to by asi slo, ja nevedel, jak se ln tvari na vice argumentu, ale asi to projdeKód: [Vybrat]find adresar -type f -mtime +0" -print0 | xargs -0 -I {} ln -s {} /kam/chci/linky
find adresar -type f -mtime +0 -exec ln -s {} /kam/chci/linky \;
touch "divny soubor..\@"
Zkoušel jsem postup bez xargs na souboruKód: [Vybrat]touch "divny soubor..\@"A podle všeho to s mezerou nemá problém.
To bude asi tím že tam žádné mezera není.
time find / -xdev -type f -iname '*' -print0 | xargs -0 ls -l >/dev/nullreal 0m10.280suser 0m6.004ssys 0m4.200s
time find / -xdev -type f -iname '*' -exec ls -l {} \; >/dev/nullreal 7m13.774suser 0m5.540ssys 0m42.456s
ale proc by jako pro lolka mel byt xargs pomalejsi?
time find / -xdev -type f -iname '*' -print0 | xargs -0 -I {} ls -l {} >/dev/nullreal 6m50.614suser 0m5.284ssys 0m33.760s