I want to modify it second and third column.
I want to just change the last character of 2nd and 3rd column with some condition.
The condition is if last char of second column is in between [A-E] then print e.g pin16A. However if character is between [F-J] then print it as pin16F. This condition is for all pin not just for pin16 its for all pin.
Thanks!!!
I was just searching for %.5sA but didn't get much on it in awk.
Can you let me know what exactly it is.
If I use pin[0-9][A-E] then what should come in place of %.5sA
This prints the num ($2 or $3) with a formatting telling it to only print the 5 first characters. This strips away the last character A-J , so we can then replace it with in as this example A