I would like to use the result of
which ls and see the file type using
file. However, when I type in
which ls | file it doesn't work. When I try to do
file < which ls, that doesn't work either.
Any pointers would be appreciated.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community