Field separator X'1F'

Hi,
I have a flat file with fields separated by a X'1F'
i have to fetch 4th field from second line.
please help me how to achieve it.

I tried with below command and its not working.

cut -f4 -d`echo -e '\x1f'` filename.txt

I am using SunOS.

Thanks in advance.

If the single quotes are part of the delimiter, this should work:

nawk -F"X'1F'" '{print $4}' filename.txt

I think OP's X'1F' means a single byte with the hex value 1F. echo in ksh on Sun doesn't accept -e option, nor the '\x' escape. Change to

echo '\0037'