shell script

Mahalingam Subramaniam smal at ccmb.res.in
Wed Jul 18 04:51:44 UTC 2007


Dear Joshua M. Miller
The script which you had suggested is not generating any output on the console. kindly  do the needful
with kind regards
s.mahalingam


    
        
            
-- Original Message --
From: "Joshua M. Miller" <joshua at itsecureadmin.com>
To: redhat-sysadmin-list at redhat.com
Cc: rhn-users at redhat.com
Date: Tue, 17 Jul 2007 07:08:24 -0700
Subject: Re: shell script
Possibly better formatted:
awk -F/ '/^[0-9]*G/ {print $5, "-", $1}' mailstorage.txt
Thanks,
--
Joshua M. Miller - RHCE,VCP
Mahalingam Subramaniam wrote:
> Dear All
> 
> My Query is as follows:
> 
> I have extracted the output and details of mail users mail inbox size 
> with file path name.
> 
> 140K /abcde/fghij/w001/wesley
> 26M /mnopq/rstuvwx/w001/wilson
> 1G /mnopq/rstuvwx/w001/alok
> 2G /mnopq/rstuvwx/w001/john
> 
> Here, I want to extract and paste the output of only users whose inbox 
> size is 1GB or more than 1GB using shell script "*cat"
> *
> (e.g.) *cat* *mailstorage.txt* (source file containing all users mail 
> inbox size information) *|awk -F ' ' '{print...... >>* *gboutput.txt* 
> (target file to paste the final output) similar to this.
> 
> can anyone help me in scripting the required full script to achieve the 
> desired result.?
> 
> Many more thanks in advance.
> 
> with kind regards
> s.mahalingam
> 
> S.Mahalingam
> Bioinformatics Centre
> Centre for Cellular and Molecular Biology
> Habsiguda, Uppal Road, Hyderabad 500 007
> 
> Ph:+91-40-27192773, 27192774
> +91-40-27160222 - 41 (20 Lines)
> Ext: 2773, 2774
> Fax: :+91-40-27160591, 27160311
> 
> E-mail:
> smal at ccmb.res.in
> smal8 at yahoo.com
> 
> http://www.ccmb.res.in
> 
> 
> ------------------------------------------------------------------------
> 
> --
> redhat-sysadmin-list mailing list
> redhat-sysadmin-list at redhat.com
> https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list
--
redhat-sysadmin-list mailing list
redhat-sysadmin-list at redhat.com
https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list

        
    

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/redhat-sysadmin-list/attachments/20070718/02e830da/attachment.htm>


More information about the redhat-sysadmin-list mailing list