lokesh garg
Member level 5
i am using the following command to place the semicolon at end of the line using the system command in perl;
system("sed -i 's/$/;/g' Xdata.txt");
it gives me the follonf error--- sed: -e expression #1, char 2: unterminated `s' command
but whe i run sed command(sed -i 's/$/;/g' Xdata.txt) directly on linux terminal, it works successfully.
please tell me how to solve this problem....
thanks
system("sed -i 's/$/;/g' Xdata.txt");
it gives me the follonf error--- sed: -e expression #1, char 2: unterminated `s' command
but whe i run sed command(sed -i 's/$/;/g' Xdata.txt) directly on linux terminal, it works successfully.
please tell me how to solve this problem....
thanks