Search the web
Sign In
New User? Sign Up
geeksthatgawk · for GNU Awk questions & discussions
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Record field manipulation   Message List  
Reply | Forward Message #63 of 221 |
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.




Wed Apr 30, 2003 9:20 am

sync24uk
Offline Offline
Send Email Send Email

Forward
Message #63 of 221 |
Expand Messages Author Sort by Date

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...
Kev Smith
sync24uk
Offline Send Email
Apr 30, 2003
9:20 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help