Article View: comp.editors
Article #46Re: Delete end of line conditionally in VI?
From: Luke Mewburn
Date: Sat, 31 Oct 1992 02:32
Date: Sat, 31 Oct 1992 02:32
31 lines
1018 bytes
1018 bytes
R.Singh@massey.ac.nz (R. Singh) writes: >The sort of thing where I could change >"A A Turner 9" >"Accountancy 2" >"A E Weir 9" >"Accountancy 2" >to >"A A Turner 9" "Accountancy 2" >"A E Weir 9" "Accountancy 2" >meaning look for 9" and execute a J command there. Try: :g/9$/j (i.e, every line ending with 9, do a 'j' command... I just tried it and it works on my sysv version of vi...) Try doing any regexp in the / ... / to match your conditions >Thanks >Raminder Singh No probs.
Technical Details
Message-ID:
<s902113.720498747@minyos.xx.rmit.OZ.AU>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!escargot!minyos.xx.rmit.OZ.AU!s902113References:
<1992Oct29.214048.29162@massey.ac.nz>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!escargot!minyos.xx.rmit.OZ.AU!s902113 From: s902113@minyos.xx.rmit.oz.au (Luke Mewburn) Newsgroups: comp.editors Subject: Re: Delete end of line conditionally in VI? Date: 31 Oct 92 02:32:27 GMT Organization: RMIT Computer Centre Lines: 31 Distribution: inet Message-ID: <s902113.720498747@minyos.xx.rmit.OZ.AU> References: <1992Oct29.214048.29162@massey.ac.nz> NNTP-Posting-Host: minyos.xx.rmit.oz.au