Quick question

Hi,

Is there a simple way, using ksh, to find the byte position in a file that a stated character appears?

Many thanks
Helen

Try using fold -1 then grep -n
e.g...

$ echo "abcdefg"|fold -1|grep -n "d"
4:d

Hi Ygor,

That works great - thank-you :slight_smile:

Helen