Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!fitz From: fitz@mml0.meche.rpi.edu (Brian Fitzgerald) Newsgroups: comp.editors Subject: Re: Vi map help needed Summary: try tr Message-ID: Date: 7 Mar 91 23:29:43 GMT References: <1991Mar2.210747.26919@solo.csci.unt.edu> Organization: Rensselaer Polytechnic Institute, Troy NY Lines: 14 Nntp-Posting-Host: mml0.meche.rpi.edu Gene De Lisa writes: >I'd like to remove those control-M cookies at the end on lines >that you get from CPM to UNIX files. I usually type >:%s/control-vcontrol-M$// A common approach to this problem is to use tr. For example, tr -d '\015' < cpmfile > unixfile I realize that this does not directly answer the original question of how to do this with an interactive editor. Depending on the job to be done, sometimes the filters (tr, grep, sed, awk and friends) are the best way to go. Brian Fitzgerald