How can I direct a pipe input to ls command?
You can use -exec
with find
command.
find . -name '*foo*' -exec ls -lah {} \;
find . -name *foo* | xargs -r ls -lah
That should work.
Try this:
find . -name *.bak -ls
You can use -exec
with find
command.
find . -name '*foo*' -exec ls -lah {} \;
find . -name *foo* | xargs -r ls -lah
That should work.
Try this:
find . -name *.bak -ls