Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It would have to be a stream anyway, so you could do it for your program by using a fd=3, like:

prog 3<input_args

or by using a here-document

prog 3<<END args END



What if I wanted to do "cat * > ../data.txt" without using special commands designed for large numbers of files?


One-by-one processing:

find $start [ criteria ] --exec cat {} \; >> ../data.txt




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: