I'm looking for a shell command to find the start index of a pattern in a text file. Indices start at 0. Example:

```
#test.txt
hello
world

# The newline character is just a normal character
$ command test.txt world
6
$ command test.txt o
4, 7

```