Hi Guys!
First of all, thanks to all of you for helping me out with my previous requirements.. This one might be simple, but I cant find the best method to solve this. Anyway, here it is!
I have a file (which is actually the result of repquota -a) with fields as shown below:
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 18512944 0 0 607802 0 0
bin -- 33168 0 0 354 0 0
daemon -- 432 0 0 44 0 0
mail -- 4 0 0 1 0 0
user -- 17536944 0 0 888888 0 0
(output truncated to save space and I know its messy when I Copy'n'Paste)
Here is what I need:
- Print the first field (User) and 6th field (Second User field) where 6th field (Second User field) is greater than 45000.
Currently, the output for my above example should be
root 999999
user 888888
(there should be more if there are other lines matching
Hope you guys can help me out with this..
Thanks a million in advance!!
Peter