Hi

Does anyone know if awk as any function which works as instr() sql function?

for example

echo kk.FmB | awk '{print substr($0, 1+index($0, "."),3) }'

this returns FmB

but if the file name has more than 1 . then I would be screwed!


cheers