Bruce,

#  Create two new files
echo  'b'  |  tee  aa.aa  aaa.aa

#  Append 'b' to two existing files
echo  'b'  |  tee  -a  aa.aa  aaa.aa

Strongly recommend getting "Unix In A NutShell" from O'Reilly and peruse it periodically; it is an excellent reference for all such things and will make you far more invaluable in researching and solving these kinds of problems.


From: bruce <badouglas@gmail.com>
To: Community support for Fedora users <users@lists.fedoraproject.org>
Sent: Wednesday, January 25, 2017 9:02 AM
Subject: simple echo into multiple files...

morn/quick question...

say you have
aa.aa
aaa.aa

is there a "simple" way to do
echo 'b' > *.aa

this doesn't work, gets a redirection error

I know one can write a quick bash/shell loop.. any other ways?

thanks
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-leave@lists.fedoraproject.org