in reply to How to inject chr(10) chr(13) into a string

'[' is a regex metacharacter, so perl's not seeing the statement you think you have. I don't think you could run that without some error message being shown.

Try

perl -p -i.bak -e"s/\[/\r\n[/g" f:\test.txt
I can't swear I've got the winders command line syntax right, but I think I do.

After Compline,
Zaxo