funnylookinhat | Heyo - anyone here know how I could append an echo to a bunch of files all at once ... i.e. echo "whatever" >> *.txt ??? apparently ambiguous redirects are a no-go. :D | 22:35 |
---|---|---|
joey | funnylookinhat: xargs might work | 23:33 |
joey | funnylookinhat: e.g. ls *somefiles* | xargs echo "*whatever* | 23:34 |
joey | funnylookinhat: e.g. ls *somefiles* | xargs echo "*whatever* >> | 23:34 |
funnylookinhat | joey, figured it out with tee :) | 23:36 |
funnylookinhat | echo "whatever" | tee -a *.txt | 23:36 |
funnylookinhat | I had no idea tee existed... | 23:36 |
funnylookinhat | lol | 23:36 |
joey | ah tee! | 23:37 |
joey | yes that will work too | 23:37 |
funnylookinhat | :) | 23:39 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!