Eric Collins Eric Collins - 1 year ago 86
Linux Question

Is it possible to (sym)link one file to many?

I have some large files that I need to concatenate into one giant file to put through a software package that does not accept stdin. I would rather not duplicate the content of existing files on the hard drive if necessary, and am looking for a shortcut that basically does

cat files*.txt
silently when opened.

Answer Source

You can use process substitution to make the output of a command appear to be a file.

some_command <(cat files*.txt)

But if the application reads from standard input, you can just pipe it:

cat files*.txt | some_command
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download