On 25Jan2017 08:42, Ian Pilcher <arequip...@gmail.com> wrote:
On 01/25/2017 08:02 AM, bruce wrote:
say you have
aa.aa
aaa.aa

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

If you don't need to doing it with an arbitrary number of files, you
can do this with one or more tee(1) commands.  For example:

 echo 'b' | tee a.txt | tee b.txt > c.txt

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

Cheers,
Cameron Simpson <c...@zip.com.au>
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to