Path: csiph.com!xmission!news.alt.net!not-for-mail From: owl Newsgroups: comp.os.linux.misc,alt.os.linux Subject: Re: Linux Command-Line Editors Vulnerable to High-Severity Bug Date: Wed, 19 Jun 2019 19:51:06 +0000 (UTC) Organization: O.W.L. Lines: 41 Message-ID: References: <4edqtf-7ho.ln1@Telcontar.valinor> NNTP-Posting-Host: boom.rooftop.invalid Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Face: $BHf)vM$6p_?9L`jmOQ54JeNyL+%MZGGRfH8&grb[Y%-jU`MCPAQN=/SVDa{(/67bP(YB}rjV^h>cUh Xref: csiph.com comp.os.linux.misc:27282 alt.os.linux:56998 In comp.os.linux.misc Carlos E.R. wrote: > On 19/06/2019 20.47, Georges wrote: >> Le 19/06/2019 à 20:32, Tauno Voipio a écrit : >>> On 19.6.19 11:55, Georges wrote: >>>> Le 19/06/2019 à 10:20, Carlos E.R. a écrit : > > ... > >>>> if you teach students, you struggle between time and contents (what you >>>> can teach on a 20h course for instance), so 'vi' is a good choice >>>> because it's widely used... and simple... once you get the philosophy ;) >>>> >>> >>> If you really want to go backward in time, you should use ed, and no >>> newer derivatives like ex and vi with family. >>> >>> My favourite in primitive editors is nano. >>> >> >> Try this with nano... ;) >> >> Let's consider a file with 2 columns (or more of course), separated with >> or or whatever you want, you need to invert columns : >> >> aaaaa bbbbb >> aaaaa bbbbb >> >> :1,$s/^\(.*\) \(.*\)$/\2 \1/ >> >> bbbbb aaaaa >> bbbbb aaaaa >> >> ;) >> > > Jstar (joe) can do that. Switch to vertical block mode, select the > rectangle on the left, move to the right. > Shuffling many columns would seem to be a pain that way.