I'm wondering if there is a command in unix that lets you take information from one file and put it into another.
IE: I'm logging someone and want to put all their logged commands into another file so I don't have to wade through the other logged commands. Is there a command in shell that can do this?
i think you should be able to grep the file and pipe the output into another file, as for correct syntax i dont remember, tho i remember doing this sort of thing in my old xenox classes at TAFE back in the mid 90's heh.
It has been a long time since i did NUX command line, i think you need to use a redirect not a pipe > then filename, but i could be wrong.
So grep string log.file > out.file will work, now what you could do if you want to be real tricky is pipe the output of the first grep into a second grep and then to a file, so you can narrow the search down to what your looking for.
grep str1 log.file | grep str2 > out.file.
Hope that helps, its been a while since i did any of this stuff.