shell script

Joshua M. Miller joshua at itsecureadmin.com
Wed Jul 18 13:37:25 UTC 2007


The cat is completely unnecessary...

I used the same data that you presented as an example in creating that 
command so it should have worked, although it looks like you have 
received some help in perl which may or may not be better for you.

Thanks,
--
Joshua M. Miller - RHCE,VCP


hjnmolly at hetnet.nl wrote:
> You may need this
> cat "object" | (e)grep "occurrence" | http://www.vectorsite.net/tsawk.html
> 
> 
> -----Original Message-----
> From: redhat-sysadmin-list-bounces at redhat.com on behalf of Mahalingam 
> Subramaniam
> Sent: Tue 7/17/2007 3:49 PM
> To: redhat-sysadmin-list at redhat.com
> Cc: rhn-users at redhat.com
> Subject: shell script
> 
> 
> 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