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
>
>
Instead of using grep, try awk instead, e.g.,

# tail -f file.log | awk '{print $NColumn}'

HTH

-- 
http://jangestre.wordpress.com
_________________________________________________
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

Reply via email to