Seem to recall that there was a thread on here for a script or a way to remove multiple ^M from each line of a text file that I have transferred to a Unix box.
Can someone please point me in the right direction.
should do it, but you have to have bos.dosutils installed. Not all systems do. Besides Dickibird's, PHV's and theotyflos' methods, you can open the file with vi and type:
:
%
s
/
Ctrl
v
Ctrl
M
/
/
g
to eliminate the ^M. I couldn't get BIS' method to work, but it could be the version of vi I have.
Simplest and quickest solution is to just re-transfer it to AIX using ASCII mode instead of binary mode. If you don't have the source on your PC anymore, just transfer it back to the PC in binary mode, then transfer again to AIX in ASCII.
At Bull's freeware site you will find an AIX package for dos2unix, ask your AIX sysadmin to install that for future use.
IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.