i have this code which is working but the result is not updated to my alpha.txt. is there anyway i can do it? im trying to change my 2nd e into f using variables.
a,b,c,d,e,e
awk -F',' -v n="$line" -v na="$newalpha" 'NR==n{$6=na;}1' OFS="," alpha.txt
You can redirect it, like: