Thank you Maartens.
> -----Original Message-----
> From: Maartens Lourens (WMR) [SMTP:lourenwm@...]
> Sent: Wednesday, April 30, 2003 1:31 PM
> To: geeksthatgawk@yahoogroups.com
> Subject: RE: [Geeks that Gawk] Record field manipulation
>
> Hi Kevin,
>
> two possibilities that come to mind are:
>
> { for ( i = 4; i <= NF; i++ ) printf( "%s ", $i ); printf( "\n" ) }
>
> or if you always know exactly what the lengths of your first three
> fields will be
> (eg. $4 will always start at column 16):
>
> { printf( "%s\n", substr( $0, 16 ) ) }
>
>
> Regards,
>
> Maartens
>
> -----Original Message-----
> From: Kev Smith [mailto:kevin.smith@...]
> Sent: 30 April 2003 11:20
> To: geeksthatgawk@yahoogroups.com
> Subject: [Geeks that Gawk] Record field manipulation
>
>
> Hi guys,
>
> I have a record that will always start with the format :
>
> "Mnt D HH:MM:SS data data data"
>
> I would like to strip the first three fields,and put the rest of the
> string into a shell variable. I have tried different ways, E.G
> printf, index, substr but I just cant seem to get it right. It would
> be nice if there was an implementation of BEGIN;{FS=" ";printf "%
> s\n",$4,the rest of the fields in the record}. Am I missing something?
>
> Thanks all who read this!
>
> Kev.
>
> Unix sys admin.
>
>
> ------------------------ Yahoo! Groups Sponsor
> ---------------------~-->
> Get 128 Bit SSL Encryption!
> http://us.click.yahoo.com/xaxhjB/hdqFAA/bW3JAA/saFolB/TM
> ---------------------------------------------------------------------~
> ->
>
> To unsubscribe from this group, send an email to:
> geeksthatgawk-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
>
> To unsubscribe from this group, send an email to:
> geeksthatgawk-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
[Non-text portions of this message have been removed]