Is there a bash command like cat
except that it takes the filename from stdin rather than the first argument? For example:
echo "/home/root/file.txt" | somecommand
would have the same output as cat /home/root/file.txt
Found the answer:
xargs cat
For example:
echo "/home/root/file.txt" | xargs cat
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments