Here is an example using sed to remove
the ^M carriage returns from a file.
# inplace (works!)
sed -i "s/\r//g" windows-text-file.txt
sed -e "s/^M//" filename > newfilename
Independent IT and Services Professional
sed -i "s/\r//g" windows-text-file.txt
sed -e "s/^M//" filename > newfilename
No comments :
Post a Comment