nix, shell, perl, php, mysql and mac os x tips and tricks

Friday, April 7, 2006

clean ctrl-M chars from a file (be VERY careful with this one - better to test)

cat options.csv | sed "s/[^M]$//" > options1.csv

No comments:

Post a Comment