I tried to understand the usage of
xargs and did the following experiment.
ls | xargs | touch
I want to refresh the files dates and directoris in the curent directory.
Though it is a bit silly,for I could use a simpler form to achieve the same effect.
In my mind,
xargs reads from the
STDIN and turn it into the arguments for the other command(
/bin/echo by default if the command is not specified). Am I misunderstanding something?
It failed and I am wondering why.