HI all,
Im using this awk line to modify my ntlist file :
awk 'BEGIN{FS="[ )(]+"}{print;for(i=1;i<=NF;++i)if($i~/^net[0-9]/)print "R_par("$i" net_lik) res r=1e9"}' input.scs > output.scs
now , there is a new condition that I need to be acount for, as well as the old one (if($i~/^net[0-9]/)),
I need to make sure that $i also exist on a one colum list-file, and only if it does, then I should do the :
print "R_par("$i" net_lik) res r=1e9"}
also, after make sure its there, and doing the: print "R_par(....,
I need to delete it from that list-file ( and there can be more than one with the same name)
I hope I explained myself well enought.
meny
Im using this awk line to modify my ntlist file :
awk 'BEGIN{FS="[ )(]+"}{print;for(i=1;i<=NF;++i)if($i~/^net[0-9]/)print "R_par("$i" net_lik) res r=1e9"}' input.scs > output.scs
now , there is a new condition that I need to be acount for, as well as the old one (if($i~/^net[0-9]/)),
I need to make sure that $i also exist on a one colum list-file, and only if it does, then I should do the :
print "R_par("$i" net_lik) res r=1e9"}
also, after make sure its there, and doing the: print "R_par(....,
I need to delete it from that list-file ( and there can be more than one with the same name)
I hope I explained myself well enought.
meny