Tuesday 25 September 2012

sed 去掉windows下的回车符

用 sed 去掉 去掉windows下的回车符
 (注意^M 在linux 下写法 按^M 是回车换行符,输入方法是按住CTRL+v,松开v,按m)
sed -i 's/^M//g' df.txt  

5 comments:

  1. Great article! We will be linking to this great article on our website.
    Keep up the great writing.
    Here is my blog : Lexington Law

    ReplyDelete
  2. Hmm it appears like your website ate my first comment (it was extremely long)
    so I guess I'll just sum it up what I had written and say, I'm thoroughly enjoying your blog.
    I too am an aspiring blog blogger but I'm still new to the whole thing. Do you have any points for newbie blog writers? I'd genuinely appreciate it.
    Feel free to surf my page : Smith Mountain Lake Vacation Rentals

    ReplyDelete
  3. For most recent information you have to go to see world-wide-web
    and on world-wide-web I found this web site as a best web page for most
    recent updates.

    Here is my homepage :: increase twitter followers

    ReplyDelete
  4. It's appropriate time to make some plans for the future and it's time to be happy.
    I've read this post and if I could I wish to suggest you few interesting things or advice. Perhaps you could write next articles referring to this article. I desire to read more things about it!

    Feel free to surf to my website storify.com

    ReplyDelete