vi editor, grep or sed

I'm currently building a system to perfom a check on some operations on a unix system, i'm very new to unix and i need help.
i know 'uname' displays the name of the OS been used, but how do u send the content of uname into a directory or file ?

There are many ways to do this depending on the scripting language you are using; or if you are simply using a command line.

If you are simply using a command line, you can redirect to a file like this:

 command > output.txt

If you want to append to the same file, you can use:

 command >> output.txt

You can do this in a script so many, many ways; depending on your skill and tools; PERL, PHP, SED, AWK, etc etc.