On 10/9/07, [EMAIL PROTECTED]@cus <[EMAIL PROTECTED]> wrote: > hi guys, > > need your help on these thing. im using tail to access the logs of one file. > but the problem is it has too many info that i dont need. i used grep but im > having a hard time filtering the output.can i use tail then grep for certain > columns i want? > > > e.g tail -f file.log | grep nColumn ??? > tnx >
Can you try "cut"? - something like: tail -f file.log | cut -d" " -f1,3 where -d is the delimeter to use, -f the fields/column to display in this example, " " is the delimiter and display only fields 1 and 3 Regards, Julius _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph

