output to a file - cat? grep?
I'd like to have the output of one file, just text, add a line to another text file. I know it's fairly simple, but I can't seem to find the info on it.
I run gentoo, and have all of my use flags stored in a text file, use.flags and I would like the lines added to the bottom of make.conf Thanks~ |
cat use.flags >> make.conf
|
great! thanks~
|
wow, so the double >> makes it append to the end of an already existent file?
If so, that's a handy one to know!! Thanks!! |
yep!
handy eh. here are a couple others: echo "net-www/mozilla-firefox ~x86" >> /etc/portage/package.keywords grep -i 'xorg' /etc/portage/* >> ./xorg_results |
Quote:
|
just be careful...
useing only one > will OVERWRITE rather than APPEND |
All times are GMT -5. The time now is 05:38 PM. |