for i in "find adresar -type f -mtime +0"; do ln -s ${i} /kam/chci/linkydone
Citace od: trubicoid2 kdy 11. 06. 2017, 00:04:26no a co mas teda? co treba takto?Kód [Vybrat] Rozbalitfor 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
Citace od: trubicoid2 kdy 12. 06. 2017, 16:44:03to by asi slo, ja nevedel, jak se ln tvari na vice argumentu, ale asi to projdeKód [Vybrat] Rozbalitfind 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..\@"
Citace od: David1234 kdy 13. 06. 2017, 12:44:03Zkoušel jsem postup bez xargs na souboruKód [Vybrat] Rozbalittouch "divny soubor..\@"A podle všeho to s mezerou nemá problém.
Citace od: Lol Phirae kdy 13. 06. 2017, 13:01:47To 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
Citace od: trubicoid2 kdy 13. 06. 2017, 14:10:45ale 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