I have Cygwin installed, I want to execute something like this on the command prompt:
perl -pne 's/</<' input > output
But I'm running into two separate issues with the &
and <
each needing to be escaped.
- something like
's/&/&'
is an error at the perl level- "Substitution pattern not terminated at -e line 1"
- something like
's/</<'
is an error at the shell level- "The system cannot find the file specified."
What do I have to do to fix this?