I have a text file that has 60 character positions. I want to be able to search for a value/word entered by the user in positions 05-12. How do I go about doing this without using awk, pearl, etc?
For example the text file is
commA6314 ifosfamide 30 12 home5341209 urokinase 6314 37
And if someone inputs
6314, then it would output the line
commA6314 ifosfamide 30 12
I was thinking of using
grep, but not too sure. Any help?