Aby lepiej zrozumieć xargs
Chcę zrozumieć użyciexargs man
wKod Rampiona:
screen -t man /bin/sh -c 'xargs man || read'
Dzięki Rampion: nie potrzebujemy kota!
Dlaczego potrzebujemyxargs
w poleceniu?
Rozumiemxargs
-część w następujący sposób
Miałem pomysł, że xargs tworzy listę poleceń. Na przykład,
find . -type f -print0 | xargs -0 grep masi
jest taka sama jak lista poleceń:
find fileA AND grep masi in it
find fileB AND grep masi in it
and so on for fileC, fileD, ...