shell script
Joshua M. Miller
joshua at itsecureadmin.com
Tue Jul 17 14:08:24 UTC 2007
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
More information about the redhat-sysadmin-list
mailing list