himanshu.chauhan has asked for the wisdom of the Perl Monks concerning the following question:
For removing that character from that file what can i do
After getting the file if use the below sed command then that ^M got removed or else can you help me how to incorporate that sed command in my perl script
sed -e "s/\r//g" <filename>
Can i use the above directly or changes have to be made while using in the perl script
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: While i am executing a perl script in that one file will get as ouput in that ^M is priting and the actual output is getting disabled?
by marto (Cardinal) on Apr 01, 2022 at 07:21 UTC | |
by cavac (Prior) on Apr 04, 2022 at 08:52 UTC | |
|
Re: While i am executing a perl script in that one file will get as ouput in that ^M is priting and the actual output is getting disabled?
by BillKSmith (Monsignor) on Apr 02, 2022 at 22:52 UTC | |
|
Re: While i am executing a perl script in that one file will get as ouput in that ^M is priting and the actual output is getting disabled?
by graff (Chancellor) on Apr 03, 2022 at 18:33 UTC |