# Process CIF (Combined_Input_Format) file to get NOTES # Last change: Jul 31, 2001 BEGIN{OFS="|"; FS=" "; sn=0; Orbit=0; flag=0; } { if (substr($0,1,1)=="#") {$0=""}; if ((flag>0)&&($1!="")) {if ($1=="EndNotes") # End of notes section {flag=0; print "Systems"sn"Orbit"Orbit"End"} else { print $0 } } # Print the text line if (($1=="System")&&(flag==0)) { sn=$2} # new system if ($1=="Orbit") { Orbit=$2; flag=0} # new orbit if ($1=="Notes") # Start of Notes section {flag=1; print "Systems"sn"Orbit"Orbit"Begin";} }