dendenners
Programmer
Hi there.
I ftp files from a windows app to unix to be processed on that platform. The file processor cannot handle the ^M's that windows inserts at the end of each line. I have a script on its own that strips the <CR>'s. Here it is:
#!/bin/ksh
sed "s/
//g" $1
I have a util.sh shell script in which I put my utility functions. However, when I put this simple looking command into the script, it doesn't work! Does anyone have a script function that strips <CR>s from files which doesn't have to be in a .sh file on its own? Thanks.
I ftp files from a windows app to unix to be processed on that platform. The file processor cannot handle the ^M's that windows inserts at the end of each line. I have a script on its own that strips the <CR>'s. Here it is:
#!/bin/ksh
sed "s/
//g" $1
I have a util.sh shell script in which I put my utility functions. However, when I put this simple looking command into the script, it doesn't work! Does anyone have a script function that strips <CR>s from files which doesn't have to be in a .sh file on its own? Thanks.