On Fri, Jan 27, 2017 at 09:49:28AM +1100, Cameron Simpson wrote:
> You can do it with a single tee command you know:
>  echo b | tee *.aa >/dev/null
> or more likely (depends on the OP's use case):
>  echo b | tee -a *.aa >/dev/null

Be aware that if there are no files matching *.aa, you will get a new
file literally named that. You can use `shopt -s failglob` in bash to
make this a failure instead.

If you *know* your files don't exist but
know your filenames, you could do:

   echo b | tee -a {a1,a2,a3}.aa

resulting in a1.aa, a2.aa, and a3.aa.

-- 
Matthew Miller
<mat...@fedoraproject.org>
Fedora Project Leader
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to