I have a Perl one-liner which will read a file and remove the first field of each line, which are separated by comma and dump the rest.
perl -wan -e 'for (@F) { if (/(aaa),(.*)/) {$text = $2; $text =~ s/$1// ; print "$text\n";}}'
Where aaa is in the first field of each line. This is working fine in Linux, but in Windows it is throwing an error:
Can't find string terminator "'" anywhere before EOF at -e line 1.`
Why is it behaving differently?