Cant pipe output of find to ls, why?
-
Why can't I pipe the output of
find
command to tols
? -
According to the man page of
ls(1)
.The ls command takes its arguments on the command line not on standard input (i. e. file descriptor 0).
-
You can use the xargs command to pipe the output of find to ls. with xargs you can execute a command with input from standard input.
Ex:
find /home -name Downloads | xargs ls -l