I have this perl script.
perl -i -0pe 's/^Insert\s*(.*)\.png\s*\n([^\n]*)$/!\[\2](..\/figures\/\1-tn.png)/mg' */*.markdown
This works fine with MacOS X, but when I execute this command on Windows 10, I have the following error message:
C:\Users\hello\Desktop\progit\en>perl -i -0pe "s/^Insert\s*(.*)\.png\s*\n([^\n]*)$/!\[\2](..\/figures\/\1-tn.png)/mg"
*/*.markdown
Can't open */*.markdown: Invalid argument.
What might cause this issue on Windows 10? I use Strawberry Perl on Windows.