i tried the awk liner below(on windows command-prompt):not working properly
gawk -v var="hot" "{ if(!NR){gsub(/cool/,var,$0) ;print} else{print}}" awk_test
input file is below
this is a cool jack
this nota cool kack
this obviously a cool jack
a unix solution is also feasible