Whats wrong With This Code

Hi ,
iam new with sed command

D:\bfx_db>sed -ne '/^SP2-[0-9]*:/S/^\<.*\[\>\<.*\>\<\].*\>$/\2\p' reg.sql >>D:\out.log

The filename, directory name, or volume label syntax is incorrect.

Here my source file is reg.sql , i need the output in out.log

Can anybody Help on this????

I don't know exactly what you are trying to do but i guess you are running that script on Windows(DOS) because when i run it now on my DOS, i got same error message and the prompt tells too. So i guess you better install
Cygwin on Windows first.

we already using sed on windows..

Sorry, didn't know that.

Please post the contents of the file reg.sql.

Please separate the command prompt from the commands in this line. It is impossible to determine what was actually typed.

D:\bfx_db>sed -ne '/^SP2-[0-9]*:/S/^\<.*\[\>\<.*\>\<\].*\>$/\2\p' reg.sql >>D:\out.log