Hi,
I was wondering if someone could help me? I want to search through a text file looking for a certain string just like you would with 'grep' but i only want to return results if the string pattern appears in a fixed position on the file.
E.g. i want to searh for a username in the passwd file e.g. 'adj' but i only want the line to be returned if this username appears at character positions 1 to 3.
Is there such a command or method that could do this for me?
Thanks
00229257
I was wondering if someone could help me? I want to search through a text file looking for a certain string just like you would with 'grep' but i only want to return results if the string pattern appears in a fixed position on the file.
E.g. i want to searh for a username in the passwd file e.g. 'adj' but i only want the line to be returned if this username appears at character positions 1 to 3.
Is there such a command or method that could do this for me?
Thanks
00229257