FileA
F97S 83 530
K569E 531 736
output shud be
F16S
K40E
it is code
sed 's/[A-Z]//g' FileA |awk '{print $1-$2+2}'
it will print
16
40
anything can come with this output??
FileA
F97S 83 530
K569E 531 736
output shud be
F16S
K40E
it is code
sed 's/[A-Z]//g' FileA |awk '{print $1-$2+2}'
it will print
16
40
anything can come with this output??
$ sed "s/[A-Z][A-Z]*/ & /g" file1 | awk '{print $1 $2-$4+2 $3}'