linux remove \r from text

vim -b file
:%s/^M//g # Note here that Ctrl+V+M is used to enter ^M

 

 

#/bin/bash
printf "*************begin************************\n"
cat san_esb_ftp1.txt  |while read line
do
        #echo $line
        mv $line /san_esb_ftp1/ESB_FTP_BAK/
done
printf "*************end************************\n"

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326623095&siteId=291194637