awk '/some-unique-text-string/' $textfilename | gawk 'BEGIN { FIELDWIDTHS = "45 15 20 19 30 6" }{print "FIELD1="$1,"FIELD2="$2,"FIELD3="$3,"FIELD4="$4,"FIELD5="$5,"FIELD6="$6}'
If you have a fixed-width text file with unique text on a row... you can locate that "unique text", then convert the fixed-width fields on that row to comma separated fields...then redirect to log file, process in a loop, display on screen, etc.

1 Response

blam blam blam

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.