I think you might be having a shell quoting problem. The backslashes are swallowed by the shell if this is under sh. Try this:
perl -wne 's/[^?]\47/\47\n/g; print' filename
This solution won't work if you have two consecutive (unescaped) apostrophes, or if the file has no newlines and is too long to read in memory.
In reply to Re: Simple Substitution
by ambrus
in thread Simple Substitution
by winter67uk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |