Twitter Updates for 2008-05-09

  • @brunns: s/^V^M// #
  • Lazyweb – how do I write a Python function that accepts either a filename or a file object? #
  • @brunns: If it’s a one off just open the file in vim and type ‘:set fileformat=unix’ #
  • @brunns: Did you type <ctrl-V><ctrl-M>? #
  • @brunns Well, the way I’ve done it is to remove the extra ctrl-M at the end of each line, when you use it in sed you have to escape it #
  • @brunns forget sed, try this – tr -d ‘\r’ < dos_file.txt > amended_file.txt #

Powered by Twitter Tools.