chebe: (Default)
[personal profile] chebe posting in [community profile] command_liners
Hey all, don't think I've seen this here before, and I know there are many ways of doing this, so I thought, in a fit of geekery, that it might be fun to try and collect them all! Afterall everyone does have their own favourite programs.

I posted this at my own journal when I first came across it, but here's a new one as well;

sed -i 's/\r//' $file_name

perl -pi -e 's/\r\n/\n/g' $file_name

Date: 2011-04-29 05:41 am (UTC)
jld: “0wned!!!” (0wned)
From: [personal profile] jld
My .exrc has this:

" remove CRs
map *@ :%s/^V^V^M$//^M


Where the ^V and ^M are the actual literal control characters. (I'm not completely sure there aren't nviisms hiding in that, so beware.) I wrote it for the specific purpose of editing cddb files in abcde.

Profile

command_liners: A command line prompt with a blinking cursor after it, green against black. (Default)
Command Liners

January 2022

S M T W T F S
      1
2 345678
9101112131415
16171819202122
23242526272829
3031     

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 18th, 2025 02:06 am
Powered by Dreamwidth Studios