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
Results 1 to 2 of 2
Thread: instr() like function with awk![]()
|
Click Here to Expand Forum to Full Width |