I have a scenario where I am trying to find multiple files based on the output of another command.
The command itself is
./libopt -d test . 2>&1 | sed -rn 's/Cannot find library \"(.*?)\"/\1/p'
and this gives me the following output
libopcodes-2.25-system.so
libbfd-2.25-system.so
libz.so.1
libdl.so.2
libc.so.6
libosal.so
libarchive.so.13
libcrypto.so.1.0.0
libfreetype.so.6
libpng12.so.0
libpthread.so.0
libts-1.0.so.0
libgcc_s.so.1
libssl.so.1.0.0
libm.so.6
ld-linux.so.3
libxml2.so.2
libbz2.so.1.0
liblzma.so.5
liblzo2.so.2
libattr.so.1
libacl.so.1
libnettle.so.4
Is there anyway that I can feed this input to the following find command in order to find the location of each of these files?
find /usr -name <INPUT_LINE>