I have a string that contains a word and a number, like this:
\"6 ovenbread\"
How can I read the number (let\'s call it i) and fin
i
No, you can't do that in sed, but it's easy enough in Awk.
sed
awk '{ print substr($2,$1,1) }' file