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
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句