I have a shell script ts.shperl -i.BAK -p -e s/^.* - // *.log*When I run that like below on windows using strawberry perl on cygwin bash, I get the below error.$ ./ts.sh-i used with no filenames on the command line, reading from STDIN.However, if I run the below command on the very same cygwin bash, it does its job without error $ perl -i.BAK -p -e s/^.* - // *.log*What should I do to get the ts.sh script working without borking ?Thanks
perl inplace regex works in shell; however, inside shell script gives error. why?
regular expression;backup;perl;cygwin