On Wed, 2004-08-11 at 16:08, [EMAIL PROTECTED] wrote:
You can do it in awk and translet it to perl with a2p

> All, 
> 
> wasn't sure if this was received b/c I got a reurne to sender error.
> 
> 
> How can I print certain fields delimited by ' '?
> In awk I would write awk '{print $1, $6}' filename
> 
> Here is an out file that I want to grab data from :
> 
> 04/29/04 11:00:28 [  6687:ebexpire, [EMAIL PROTECTED] E00796   9840S  537  
> 2B0234233543E6A4
> 04/29/04 11:00:28 [  6687:ebexpire, [EMAIL PROTECTED] E00830   9840S  571  
> D402325A8345ABDE
> 04/29/04 11:00:28 [  6687:ebexpire, [EMAIL PROTECTED] E00066   9840S  127  
> 5202333193B75CBB
> 04/29/04 11:00:28 [  6687:ebexpire, [EMAIL PROTECTED] E00501   9840S  168  
> 4B0233BABA5813F6
> 
> I want fields one two and six or the date, time and E string.
> Does it matter whether I use a foreach or a while (<filehandle>)  ?
> 
> thank you again !
>  
> 
> Derek B. Smith
> OhioHealth IT
> UNIX / TSM / EDM Teams
> 614-566-4145


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to