When I type:
whereis boost
it shows:
/usr/include/boost
Now I want to list all the files in this directory, so I type:
whereis boost | ls
But it only shows the files in the current working directory. Is there anyway to list all the files more quickly following the idea above (the way can be different but the idea is I want to quickly have a glimpse at a directory which I find with whereis, locate or something like that).
sh(1)
if you're new. Command substitution is the answer, but I'm going to casually mentionxargs