I need to have script.sh
, that would create files f1.txt
and f2.txt
with content that was sent to stdin. For example:
echo ABRACODABRA | script.sh
...should create files f1.txt
and f2.txt
with the content ABRACODABRA
.
How can I do this?
Please provide script.sh
's body!