Jun 18, 2003 #1 nguyenb9 Technical User Apr 1, 2003 55 US I have a file look like: HOD2|741|301||Y| HOD2|751|30144||Y| HOD2|761|3012||Y| I want the third field to be coverted into how many digits in that field. Result: HOD2|741|3||Y| HOD2|751|5||Y| HOD2|761|4||Y| Thank you for you help.
I have a file look like: HOD2|741|301||Y| HOD2|751|30144||Y| HOD2|761|3012||Y| I want the third field to be coverted into how many digits in that field. Result: HOD2|741|3||Y| HOD2|751|5||Y| HOD2|761|4||Y| Thank you for you help.
Jun 18, 2003 #2 CaKiwi Programmer Apr 8, 2001 1,294 US Try BEGIN {OFS=FS="|"} { $3=length($3) print } CaKiwi "I love mankind, it's people I can't stand" - Linus Van Pelt Upvote 0 Downvote
Try BEGIN {OFS=FS="|"} { $3=length($3) print } CaKiwi "I love mankind, it's people I can't stand" - Linus Van Pelt
Jun 18, 2003 Thread starter #3 nguyenb9 Technical User Apr 1, 2003 55 US You are the man Thank you Upvote 0 Downvote
Jun 18, 2003 #4 vgersh99 Programmer Jul 27, 2000 2,146 US Are you sure? [pun intended] vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+ Upvote 0 Downvote
Are you sure? [pun intended] vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+