Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Awk > AWK & FIXED WID...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 2159 of 2241
Post > Topic >>

AWK & FIXED WIDTH FILE to REPLACE VALUE

by Kels <klintonselki@[EMAIL PROTECTED] > Feb 11, 2008 at 11:21 AM

I have limited knowledge of UNIX and a fixed witdth file of over 4
million records. I need to match a pattern at a specific location in
each record and replace the value. The following is an example of the
awk I would use to find my pattern

=83=DE	awk 'substr($0,153,8)=3D=3D"94695577"'

How can I use this to replace the value.




 2 Posts in Topic:
AWK & FIXED WIDTH FILE to REPLACE VALUE
Kels <klintonselki@[EM  2008-02-11 11:21:42 
Re: AWK & FIXED WIDTH FILE to REPLACE VALUE
Ed Morton <morton@[EMA  2008-02-11 13:30:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 14:02:37 CDT 2008.