unable to run a script

thi is

chmod +x test.sh and add #! /bin/sh as the first line of script.

Did you really type ./file.csv or ./Test.SH? file.csv sounds like a data file, not a script file.

I used ./Test.SH...still it didn't work.......any clue

Did u try to give absolute path or perl command?
do

which perl

and use that in your script.

.

this is

Have a read of this:

How to write a shell script

Regards

Take note of changing the permissions and stuff..
Use FULL paths
example
cp /home/admin/fileA.csv /var/tmp/fileB.csv #sourceand dest locations
/usr/bin/perl -i.bak -0777 -ple's/(".*?)[\r\n]*(.*?")/$1$2/g' /home/admin/fileA.csv
Let us know if you're able to resolve this issue.

this is

this is

It appears that you are creating these files in Windows and uploading them to Unix?

This means that the files are in the wrong format, they have CRLF line endings instead of just LF (CR = carriage return, LF = line feed).

You should either create the script on Unix using a Unix native editor, or convert the file to Unix format (tr -d '\r' < windowsfile > unixfile should do the trick).