Thread View: alt.privacy.anon-server
33 messages
33 total messages
Started by anonymous
Sun, 16 Jun 2019 12:53
Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: anonymous
Date: Sun, 16 Jun 2019 12:53
Date: Sun, 16 Jun 2019 12:53
10 lines
1079 bytes
1079 bytes
(I have never understood why anyone would want to waste their time learning how to use that Vim crap. Just a foolish venture into egotistical intellectual chauvinism.) A bug impacting editors Vim and Neovim could allow a trojan code to escape sandbox mitigations. https://threatpost.com/linux-command-line-editors-high-severity- bug/145569/
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: Anonymous
Date: Sun, 16 Jun 2019 12:56
Date: Sun, 16 Jun 2019 12:56
2 lines
845 bytes
845 bytes
<https://threatpost.com/linux-command-line-editors-high-severity- bug/145569/>
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: Fenris
Date: Sun, 16 Jun 2019 13:53
Date: Sun, 16 Jun 2019 13:53
6 lines
1290 bytes
1290 bytes
On Sun, 16 Jun 2019, anonymous wrote: > (I have never understood why anyone would want to waste their time > learning how to use that Vim crap. Just a foolish venture into > egotistical intellectual chauvinism.) Once you ware a admin for several unix flavours you may know why.
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: The Natural Philosopher
Date: Sun, 16 Jun 2019 14:35
Date: Sun, 16 Jun 2019 14:35
17 lines
1756 bytes
1756 bytes
On 16/06/2019 14:53, Fenris wrote: > On Sun, 16 Jun 2019, anonymous wrote: >> (I have never understood why anyone would want to waste their time >> learning how to use that Vim crap.ย Just a foolish venture into >> egotistical intellectual chauvinism.) > > Once you ware a admin for several unix flavours you may know why. vi was all one could rely on. I have written thousands of lines in vi. -- "Corbyn talks about equality, justice, opportunity, health care, peace, community, compassion, investment, security, housing...." "What kind of person is not interested in those things?" "Jeremy Corbyn?"
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: Roger Blake
Date: Sun, 16 Jun 2019 15:30
Date: Sun, 16 Jun 2019 15:30
16 lines
1843 bytes
1843 bytes
On 2019-06-16, The Natural Philosopher <tnp@invalid.invalid> wrote: > vi was all one could rely on. I have written thousands of lines in vi. Same here. Probably the thing to do is add "set nomodeline" to the system-wide vim configuration (/etc/vim/vimrc.local). On at least one system I spot-checked this was already in the system-wide vimrc with a comment that this is a dangerous feature. -- ----------------------------------------------------------------------------- Roger Blake (Posts from Google Groups killfiled due to excess spam.) NSA sedition and treason -- http://www.DeathToNSAthugs.com Don't talk to cops! -- http://www.DontTalkToCops.com Badges don't grant extra rights -- http://www.CopBlock.org -----------------------------------------------------------------------------
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: Sir Gaygory's Owner's Owner ๐ถ็ฌ
Date: Sun, 16 Jun 2019 16:57
Date: Sun, 16 Jun 2019 16:57
67 lines
6170 bytes
6170 bytes
On Sun, 16 Jun 2019 07:53:55 -0500, LO AND BEHOLD; "anonymous" <anonymous@rip.ax.lt> determined that the following was of great importance and subsequently decided to freely share it with us in <qe5e54$opq$1@neodome.net>: โกโกโกโกโกโกโกโกโกโกโก (I have never understood why anyone would want to waste their time โกโกโกโกโกโกโกโกโกโกโก learning how to use that Vim crap. Just a foolish venture into โกโกโกโกโกโกโกโกโกโกโก egotistical intellectual chauvinism.) โกโกโกโกโกโกโกโกโกโกโก โกโกโกโกโกโกโกโกโกโกโก A bug impacting editors Vim and Neovim could allow a trojan code to โกโกโกโกโกโกโกโกโกโกโก escape sandbox mitigations. โกโกโกโกโกโกโกโกโกโกโก โกโกโกโกโกโกโกโกโกโกโก https://threatpost.com/linux-command-line-editors-high-severity- โกโกโกโกโกโกโกโกโกโกโก bug/145569/ maybe because sometimes it's the only editor available on some systems. were you a sysadmin, you'd probably not have this jealous attitude. -- [THIS POAST HAS PASSED TRIMCHECKยฎ VALIDATION] THIS SPACE FOR RENT https://www.youtube.com/watch?v=iB6B8jGSdLA "Thanks to muzzies and their apologist-enablers like puppy whistle, this seems to be the new norm in the world. It's spreading like a cancer, and it's time we admit we're at war with pure evil. We need to put an end to this muzzie plague, or life on Earth is going to become pure hell everywhere. We need to get these people out of every civilized country, and there's only one way to do it. IOW, we have to become like them, with an emphasis on expediency over cruelty." - Checkmate (of alt.checkmate) "Pussy Willow has just proven that Trump's crackdown on previously unenforced immigration policies is working. We'll deal with the domestic terrorists as needed, but we don't need to be letting the muzzie terrorists get a foothold in our country too. One need only look at what they're doing in Europe right now to know we're doing the right thing by keeping them out, which is our right and our duty. - Checkmate (#1 pussy willow fan) - "You just made puppy whistle's sig line longer." - Janithor - "If I have a complaint about the (Southern Poverty) Law Center's description (of the alt-right movement), it is the phrase "heavy use of social media," which implies the alt-right is a real-world movement which uses a lot of social media. This is backwards: it is an online movement which occasionally appears in the real world. Where it gets punched." - Jason Rhode - "I think we should destroy every last fucking mosque in America." - "Checkmate, DoW #1" <Lunatic.Fringe@The.Edge> proves for us that white males are violent in Message-ID: <MPG.32c5bfefd18c9a698f0a8@news.altopia.com> - Golden Killfile, June 2005 KOTM, November 2006 Bob Allisat Memorial Hook, Line & Sinker, November 2006 Special Ops Cody Memorial Purple Heart, November 2006 Special Ops Cody Memorial Purple Heart, September 2007 Tony Sidaway Memorial "Drama Queen" Award, November 2006 Busted Urinal Award, April 2007 Order of the Holey Sockpuppet, September 2007 Barbara Woodhouse Memorial Dog Whistle, September 2006 Barbara Woodhouse Memorial Dog Whistle, April 2008 Tinfoil Sombrero, February 2007 AUK Mascot, September 2007 Putting the Awards Out of Order to Screw With the OCD Fuckheads, March 2016
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: Grant Taylor
Date: Sun, 16 Jun 2019 17:12
Date: Sun, 16 Jun 2019 17:12
25 lines
2045 bytes
2045 bytes
On 6/16/19 6:53 AM, anonymous wrote: > (I have never understood why anyone would want to waste their time > learning how to use that Vim crap. Perhaps you could learn if you took the time to ask why someone would want to do that. Note: Asking why someone wants to do something does not mean that you have to agree with it or do so yourself. > Just a foolish venture into egotistical intellectual chauvinism.) I disagree. Ego has nothing to do with it. It's simply the best tool that I've found for the job at hand. If a different tool works better for you, then use what you want. I've found vim to be quite fast and allow me to do many things that are difficult if not impossible to do in other editors. Some of which aren't possible even in simpler vi, ex, or ed. -- Grant. . . . unix || die
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: J.O. Aho
Date: Sun, 16 Jun 2019 19:28
Date: Sun, 16 Jun 2019 19:28
21 lines
1918 bytes
1918 bytes
On 16/06/2019 18.57, Sir Gaygory's Owner's Owner ๐ถ็ฌ wrote: > On Sun, 16 Jun 2019 07:53:55 -0500, LO AND BEHOLD; "anonymous" > <anonymous@rip.ax.lt> determined that the following was of great > importance and subsequently decided to freely share it with us in > <qe5e54$opq$1@neodome.net>: > > โกโกโกโกโกโกโกโกโกโกโก (I have never understood why anyone would want to waste their time > โกโกโกโกโกโกโกโกโกโกโก learning how to use that Vim crap. Just a foolish venture into > โกโกโกโกโกโกโกโกโกโกโก egotistical intellectual chauvinism.) > > maybe because sometimes it's the only editor available on some systems. > > were you a sysadmin, you'd probably not have this jealous attitude. > Could just be the eternal flamewar between Emacs and Vi ;) -- //Aho
How come we're not talking about (Was: Linux Command-Line Editors Vulnerable to High-Severity Bug)
Author: Kenny McCormack
Date: Sun, 16 Jun 2019 20:12
Date: Sun, 16 Jun 2019 20:12
12 lines
1550 bytes
1550 bytes
In article <gmnjigFee8sU2@mid.individual.net>, J.O. Aho <user@example.net> wrote: ... >Could just be the eternal flamewar between Emacs and Vi ;) How come all this idle chit-chat about editors and the people who use them, and nothing about the supposed "vulnerability" (aka, security threat) alluded to? -- People who want to share their religious views with you almost never want you to share yours with them. -- Dave Barry
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: Siri Cruise
Date: Sun, 16 Jun 2019 20:26
Date: Sun, 16 Jun 2019 20:26
14 lines
2305 bytes
2305 bytes
In article <qe5e54$opq$1@neodome.net>, "anonymous" <anonymous@rip.ax.lt> wrote: > (I have never understood why anyone would want to waste their time > learning how to use that Vim crap. Just a foolish venture into > egotistical intellectual chauvinism.) You don't always have X-Windows or Aqua available, such as telnet, ssh, sudo. vi does a gui within a terminal window or terminal device. -- :-<> Siri Seal of Disavowal #000-001. Disavowed. Denied. Deleted. @ 'I desire mercy, not sacrifice.' /|\ The first law of discordiamism: The more energy This post / \ to make order is nore energy made into entropy. insults Islam. Mohammed
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: Snit
Date: Sun, 16 Jun 2019 20:34
Date: Sun, 16 Jun 2019 20:34
30 lines
2458 bytes
2458 bytes
On 6/16/19 1:26 PM, Siri Cruise wrote: > In article <qe5e54$opq$1@neodome.net>, "anonymous" <anonymous@rip.ax.lt> wrote: > >> (I have never understood why anyone would want to waste their time >> learning how to use that Vim crap. Just a foolish venture into >> egotistical intellectual chauvinism.) > > You don't always have X-Windows or Aqua available, such as telnet, ssh, sudo. vi > does a gui within a terminal window or terminal device. > It is also a very powerful text editor for situations where you have massive log files and the like. I tend to use BBEdit (and even that the free version) but I do not have the higher end needs that vi serves MUCH better... but I realize it does. It is sorta like LibreOffice and Word... LibreOffice works great for many things but Word is for "bigger" tasks. Or maybe even moreso -- GIMP and Photoshop. GIMP is wonderful but it is simply not a replacement for Photoshop. In this case the open source solution, vi, is the solution for "bigger" text editing tasks. -- Personal attacks from those who troll show their own insecurity. They cannot use reason to show the message to be wrong so they try to feel somehow superior by attacking the messenger. They cling to their attacks and ignore the message time and time again.
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: Andreas Kohlbach
Date: Sun, 16 Jun 2019 20:53
Date: Sun, 16 Jun 2019 20:53
21 lines
2320 bytes
2320 bytes
On Sun, 16 Jun 2019 15:35:28 +0100, The Natural Philosopher wrote: > > On 16/06/2019 14:53, Fenris wrote: >> On Sun, 16 Jun 2019, anonymous wrote: >>> (I have never understood why anyone would want to waste their time >>> learning how to use that Vim crap.ย Just a foolish venture into >>> egotistical intellectual chauvinism.) >> >> Once you ware a admin for several unix flavours you may know why. > > vi was all one could rely on. I have written thousands of lines in vi. Before I switched to Emacs Gnus I used slrn as newsreader, and the editor of choice was vi. F'up comp.os.linux.misc -- Andreas My random thoughts and comments https://news-commentaries.blogspot.com/
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: Freenet
Date: Mon, 17 Jun 2019 01:44
Date: Mon, 17 Jun 2019 01:44
6 lines
1078 bytes
1078 bytes
> > (I have never understood why anyone would want to waste their time > learning how to use that Vim crap. Just a foolish venture into > egotistical intellectual chauvinism.) What I hate about it is when I accidentally start it. I then usually have to go and dig around the web to find out how to close it.
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: Jasen Betts
Date: Mon, 17 Jun 2019 12:41
Date: Mon, 17 Jun 2019 12:41
13 lines
1830 bytes
1830 bytes
On 2019-06-17, Freenet <pieer@free.fr> wrote: >> >> (I have never understood why anyone would want to waste their time >> learning how to use that Vim crap. Just a foolish venture into >> egotistical intellectual chauvinism.) > > What I hate about it is when I accidentally start it. I then usually have to go and dig around the web to find out how to close it. indeed that is the one essential vi skill <Esc> : q ! <Enter> -- When I tried casting out nines I made a hash of it.
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: School of Agriculture
Date: Mon, 17 Jun 2019 19:35
Date: Mon, 17 Jun 2019 19:35
10 lines
1237 bytes
1237 bytes
> > On Sun, 16 Jun 2019, anonymous wrote: > >> (I have never understood why anyone would want to waste their time >> learning how to use that Vim crap. Just a foolish venture into >> egotistical intellectual chauvinism.) > > Once you ware a admin for several unix flavours you may know why. Isn't nano available on all flavors of Linux?
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: The Natural Philosopher
Date: Mon, 17 Jun 2019 19:42
Date: Mon, 17 Jun 2019 19:42
18 lines
1641 bytes
1641 bytes
On 17/06/2019 20:35, School of Agriculture wrote: >> >> On Sun, 16 Jun 2019, anonymous wrote: >> >>> (I have never understood why anyone would want to waste their time >>> learning how to use that Vim crap. Just a foolish venture into >>> egotistical intellectual chauvinism.) >> >> Once you ware a admin for several unix flavours you may know why. > > Isn't nano available on all flavors of Linux? > Not in 1985 -- In a Time of Universal Deceit, Telling the Truth Is a Revolutionary Act. - George Orwell
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: Roger Blake
Date: Mon, 17 Jun 2019 20:30
Date: Mon, 17 Jun 2019 20:30
17 lines
1848 bytes
1848 bytes
On 2019-06-17, School of Agriculture <ag@hick.edu> wrote: > Isn't nano available on all flavors of Linux? The best editor is the one you don't have to think about, where muscle memory takes over. I've been using vi since the early 1980s starting on BSD 4.1 and using it is transparent at this point. I have to stop and think to use nano. (I would not necessarily recommend vi/vim to someone just starting out though.) -- ----------------------------------------------------------------------------- Roger Blake (Posts from Google Groups killfiled due to excess spam.) NSA sedition and treason -- http://www.DeathToNSAthugs.com Don't talk to cops! -- http://www.DontTalkToCops.com Badges don't grant extra rights -- http://www.CopBlock.org -----------------------------------------------------------------------------
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: Kenny McCormack
Date: Mon, 17 Jun 2019 20:30
Date: Mon, 17 Jun 2019 20:30
25 lines
1992 bytes
1992 bytes
In article <qe8q2c$9f8$1@news.mixmin.net>, School of Agriculture <ag@hick.edu> wrote: >> >> On Sun, 16 Jun 2019, anonymous wrote: >> >>> (I have never understood why anyone would want to waste their time >>> learning how to use that Vim crap. Just a foolish venture into >>> egotistical intellectual chauvinism.) >> >> Once you ware a admin for several unix flavours you may know why. > > Isn't nano available on all flavors of Linux? > Available, perhaps, in the sense of you could get it and compile it. But not likely to already be there. Also, who in the heck wants to use Windows Notepad (aka, nano) ? -- The randomly chosen signature file that would have appeared here is more than 4 lines long. As such, it violates one or more Usenet RFCs. In order to remain in compliance with said RFCs, the actual sig can be found at the following URL: http://user.xmission.com/~gazelle/Sigs/LadyChatterley
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: Andreas Kohlbach
Date: Mon, 17 Jun 2019 21:30
Date: Mon, 17 Jun 2019 21:30
20 lines
2389 bytes
2389 bytes
On Mon, 17 Jun 2019 12:41:08 -0000 (UTC), Jasen Betts wrote: > > On 2019-06-17, Freenet <pieer@free.fr> wrote: >>> >>> (I have never understood why anyone would want to waste their time >>> learning how to use that Vim crap. Just a foolish venture into >>> egotistical intellectual chauvinism.) >> >> What I hate about it is when I accidentally start it. I then >> usually have to go and dig around the web to find out how to close >> it. > > indeed that is the one essential vi skill <Esc> : q ! <Enter> And that information is missing in the "splash screen" (displayed when you open vi without a file name). This Red Button should IMO be mentioned. F'up2 comp.os.linux.misc -- Andreas
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: Andreas Kohlbach
Date: Mon, 17 Jun 2019 21:31
Date: Mon, 17 Jun 2019 21:31
22 lines
2352 bytes
2352 bytes
On Mon, 17 Jun 2019 20:42:41 +0100, The Natural Philosopher wrote: > > On 17/06/2019 20:35, School of Agriculture wrote: >>> >>> On Sun, 16 Jun 2019, anonymous wrote: >>> >>>> (I have never understood why anyone would want to waste their time >>>> learning how to use that Vim crap. Just a foolish venture into >>>> egotistical intellectual chauvinism.) >>> >>> Once you ware a admin for several unix flavours you may know why. >> >> Isn't nano available on all flavors of Linux? >> > Not in 1985 There was no Linux in 1985. But Live Aid. :-D -- Andreas My random thoughts and comments https://news-commentaries.blogspot.com/
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: Anonymous
Date: Tue, 18 Jun 2019 12:04
Date: Tue, 18 Jun 2019 12:04
13 lines
1239 bytes
1239 bytes
> >> >> On Sun, 16 Jun 2019, anonymous wrote: >> >>> (I have never understood why anyone would want to waste their time >>> learning how to use that Vim crap. Just a foolish venture into >>> egotistical intellectual chauvinism.) >> >> Once you ware a admin for several unix flavours you may know why. > > Isn't nano available on all flavors of Linux? I was wondering that also. No more replies. That seems to have thrown a wrench in their rebuttals.
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: Fenris
Date: Tue, 18 Jun 2019 12:18
Date: Tue, 18 Jun 2019 12:18
17 lines
1763 bytes
1763 bytes
On Tue, 18 Jun 2019, Anonymous wrote: >>>> (I have never understood why anyone would want to waste their time >>>> learning how to use that Vim crap. Just a foolish venture into >>>> egotistical intellectual chauvinism.) >>> >>> Once you ware a admin for several unix flavours you may know why. >> >> Isn't nano available on all flavors of Linux? > > I was wondering that also. No more replies. That seems to have thrown a wrench in their rebuttals. Well, i was talking about unix but not linux only. At least on the unix systems i administrated - solaris, aix, hp-ux, ibm uss - there was no nano installed. On the other hand I found on every system i had my hands on the vi editor. But what do I know..
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: The Natural Philosopher
Date: Tue, 18 Jun 2019 13:17
Date: Tue, 18 Jun 2019 13:17
32 lines
2397 bytes
2397 bytes
On 18/06/2019 13:18, Fenris wrote: > On Tue, 18 Jun 2019, Anonymous wrote: >>>>> (I have never understood why anyone would want to waste their time >>>>> learning how to use that Vim crap.ย Just a foolish venture into >>>>> egotistical intellectual chauvinism.) >>>> >>>> Once you ware a admin for several unix flavours you may know why. >>> >>> Isn't nano available on all flavors of Linux? >> >> ย I was wondering that also.ย No more replies.ย That seems to have >> thrown a wrench in their rebuttals. > > Well, i was talking about unix but not linux only. At least on the unix > systems i administrated - solaris, aix, hp-ux, ibm uss - there was no > nano installed. > On the other hand I found on every system i had my hands on the vi editor. > But what do I know.. Exactly. Some of us were not permies sitting at a desk able to install whatever we wanted and play with it, we were on short term contracts or on site visits setting up systems and the only thing you could guarantee access to was vi or its even more primitive forbear, ed. https://en.wikipedia.org/wiki/Ed_(text_editor) -- "And if the blind lead the blind, both shall fall into the ditch". Gospel of St. Mathew 15:14
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: chrisv
Date: Tue, 18 Jun 2019 13:52
Date: Tue, 18 Jun 2019 13:52
25 lines
1976 bytes
1976 bytes
The Natural Philosopher wrote: >On 18/06/2019 13:18, Fenris wrote: >> >> Well, i was talking about unix but not linux only. At least on the unix >> systems i administrated - solaris, aix, hp-ux, ibm uss - there was no >> nano installed. >> On the other hand I found on every system i had my hands on the vi editor. >> But what do I know.. > >Exactly. Some of us were not permies sitting at a desk able to install >whatever we wanted and play with it, we were on short term contracts or >on site visits setting up systems and the only thing you could guarantee >access to was vi or its even more primitive forbear, ed. > >https://en.wikipedia.org/wiki/Ed_(text_editor) Ish. https://www.gnu.org/fun/jokes/ed-msg.html -- "So sentient human beings should have their freedom restricted so that some bits on a disk somewhere (source code) can have freedom instead." - trolling fsckwit "Ezekiel", attacking the GPL
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: Jasen Betts
Date: Thu, 20 Jun 2019 05:57
Date: Thu, 20 Jun 2019 05:57
35 lines
2576 bytes
2576 bytes
On 2019-06-18, chrisv <chrisv@nospam.invalid> wrote: > The Natural Philosopher wrote: > >>On 18/06/2019 13:18, Fenris wrote: >>> >>> Well, i was talking about unix but not linux only. At least on the unix >>> systems i administrated - solaris, aix, hp-ux, ibm uss - there was no >>> nano installed. >>> On the other hand I found on every system i had my hands on the vi editor. >>> But what do I know.. >> >>Exactly. Some of us were not permies sitting at a desk able to install >>whatever we wanted and play with it, we were on short term contracts or >>on site visits setting up systems and the only thing you could guarantee >>access to was vi or its even more primitive forbear, ed. >> >>https://en.wikipedia.org/wiki/Ed_(text_editor) > > Ish. > > https://www.gnu.org/fun/jokes/ed-msg.html until openssh started printing instructions on how to purge bad records from known_hosts ed was my go-to solution ed ~/.ssh/known_hosts 314 d w q 314 here is line number of the bad record taken from the error message. -- When I tried casting out nines I made a hash of it.
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: chrisv
Date: Thu, 20 Jun 2019 12:05
Date: Thu, 20 Jun 2019 12:05
24 lines
1739 bytes
1739 bytes
Jasen Betts wrote: > chrisv <chrisv@nospam.invalid> wrote: >> >> https://www.gnu.org/fun/jokes/ed-msg.html > >until openssh started printing instructions on how to purge bad >records from known_hosts ed was my go-to solution > >ed ~/.ssh/known_hosts >314 >d >w >q > >314 here is line number of the bad record taken from the error message. vi could have done the same... -- '[chrisv is] the same dimwit who thinks that determining if software works or not is accomplished through "compile time warnings" and not by actually testing the software.' - trolling fsckwit "Ezekiel", lying shamelessly
Using 'sed' to delete a line from a file (Was: Linux Command-Line Editors Vulnerable to High-Severity Bug)
Author: Kenny McCormack
Date: Thu, 20 Jun 2019 12:32
Date: Thu, 20 Jun 2019 12:32
35 lines
2260 bytes
2260 bytes
In article <pgtmge5haptnvn6tu35fapmssdrnge92bo@4ax.com>,
chrisv <chrisv@nospam.invalid> wrote:
...
>>until openssh started printing instructions on how to purge bad
>>records from known_hosts ed was my go-to solution
>>
>>ed ~/.ssh/known_hosts
>>314
>>d
>>w
>>q
>>
>>314 here is line number of the bad record taken from the error message.
>
>vi could have done the same...
Or sed. Note: I don't often recommend sed - for reasons well explained by
a certain poster in comp.lang.awk, but this is one simple case where using
sed makes sense.
sed -i.old 314d ~/.ssh/known_hosts
Note that this problem gets more tricky if you want to support deleting
more than one line in a single invocation. I actually figured out a way to
do this with sed - by invoking sed twice - but I think if I had to do it
over again, I'd do it in gawk instead.
# Untested, but looks right to me...
gawk -i inplace 'BEGIN { for (i in ARGV) ToDelete[ARGV[i]] } !(NR in ToDelete)' \
~/.ssh/known_hosts 314 319 762
--
A racist, a Nazi, and a Klansman walk into a bar...
Bartender says, "What will it be, Mr. Trump?"
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: Anonymous
Date: Thu, 20 Jun 2019 13:31
Date: Thu, 20 Jun 2019 13:31
23 lines
1245 bytes
1245 bytes
> > Jasen Betts wrote: > > >> chrisv <chrisv@nospam.invalid> wrote: >>> >>> https://www.gnu.org/fun/jokes/ed-msg.html >> >> until openssh started printing instructions on how to purge bad >> records from known_hosts ed was my go-to solution >> >> ed ~/.ssh/known_hosts >> 314 >> d >> w >> q >> >> 314 here is line number of the bad record taken from the error message. > > vi could have done the same... After wasting time to learn it.
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: Anonymous
Date: Thu, 20 Jun 2019 13:33
Date: Thu, 20 Jun 2019 13:33
23 lines
1245 bytes
1245 bytes
> > Jasen Betts wrote: > > >> chrisv <chrisv@nospam.invalid> wrote: >>> >>> https://www.gnu.org/fun/jokes/ed-msg.html >> >> until openssh started printing instructions on how to purge bad >> records from known_hosts ed was my go-to solution >> >> ed ~/.ssh/known_hosts >> 314 >> d >> w >> q >> >> 314 here is line number of the bad record taken from the error message. > > vi could have done the same... After wasting time to learn it.
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: Anonymous
Date: Thu, 20 Jun 2019 13:42
Date: Thu, 20 Jun 2019 13:42
23 lines
1245 bytes
1245 bytes
> > Jasen Betts wrote: > > >> chrisv <chrisv@nospam.invalid> wrote: >>> >>> https://www.gnu.org/fun/jokes/ed-msg.html >> >> until openssh started printing instructions on how to purge bad >> records from known_hosts ed was my go-to solution >> >> ed ~/.ssh/known_hosts >> 314 >> d >> w >> q >> >> 314 here is line number of the bad record taken from the error message. > > vi could have done the same... After wasting time to learn it.
Re: Using 'sed' to delete a line from a file (Was: Linux Command-Line Editors Vulnerable to High-Severity Bug)
Author: Grant Taylor
Date: Thu, 20 Jun 2019 18:17
Date: Thu, 20 Jun 2019 18:17
17 lines
1961 bytes
1961 bytes
On 6/20/19 6:32 AM, Kenny McCormack wrote:
> Note that this problem gets more tricky if you want to support deleting
> more than one line in a single invocation. I actually figured out
> a way to do this with sed - by invoking sed twice
You can do it with a single invocation of sed:
sed -i.old '418d;327d;125d' ~/.ssh/known_hosts
You don't /have/ to do the lower lines first. But you do need to adjust
the line numbers of lower lines if you delete earlier lines first.
--
Grant. . . .
unix || die
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: Sir Gaygory's Owner's Owner ๐ถ็ฌ
Date: Fri, 21 Jun 2019 18:24
Date: Fri, 21 Jun 2019 18:24
69 lines
7292 bytes
7292 bytes
On Sun, 16 Jun 2019 21:28:16 +0200, LO AND BEHOLD; "J.O. Aho" <user@example.net> determined that the following was of great importance and subsequently decided to freely share it with us in <gmnjigFee8sU2@mid.individual.net>: โกโกโกโกโกโกโกโกโกโกโก On 16/06/2019 18.57, ๐ฉ's Owner ๐ถ็ฌ wrote: โกโกโกโกโกโกโกโกโกโกโก โกโกโกโกโกโกโกโกโกโกโก On Sun, 16 Jun 2019 07:53:55 -0500, LO AND BEHOLD; "anonymous" โกโกโกโกโกโกโกโกโกโกโก โกโกโกโกโกโกโกโกโกโกโก <anonymous@rip.ax.lt> determined that the following was of great โกโกโกโกโกโกโกโกโกโกโก โกโกโกโกโกโกโกโกโกโกโก importance and subsequently decided to freely share it with us in โกโกโกโกโกโกโกโกโกโกโก โกโกโกโกโกโกโกโกโกโกโก <qe5e54$opq$1@neodome.net>: โกโกโกโกโกโกโกโกโกโกโก (I have โกโกโกโกโกโกโกโกโกโกโก โกโกโกโกโกโกโกโกโกโกโก never understood why anyone would want to waste their time โกโกโกโกโกโกโกโกโกโกโก โกโกโกโกโกโกโกโกโกโกโก โกโกโกโกโกโกโกโกโกโกโก learning how to use that Vim crap. โกโกโกโกโกโกโกโกโกโกโก โกโกโกโกโกโกโกโกโกโกโก Just a foolish venture into โกโกโกโกโกโกโกโกโกโกโก โกโกโกโกโกโกโกโกโกโกโก โกโกโกโกโกโกโกโกโกโกโก egotistical intellectual chauvinism.) maybe because sometimes it's the โกโกโกโกโกโกโกโกโกโกโก โกโกโกโกโกโกโกโกโกโกโก only editor available on some systems. were you a sysadmin, you'd โกโกโกโกโกโกโกโกโกโกโก โกโกโกโกโกโกโกโกโกโกโก probably not have this jealous attitude. โกโกโกโกโกโกโกโกโกโกโก โกโกโกโกโกโกโกโกโกโกโก Could just be the eternal flamewar between Emacs and Vi ;) i use both for different purposes, so i don't understand why anybody would want to be an evangelist for either. there's no reason to fire up emacs to comment out a line in a config file, IMO, and i wouldn't want to edit 2000+ lines of code without syntax-highlighting and mouse scrolling in vi. -- [THIS POAST HAS PASSED TRIMCHECKยฎ VALIDATION] THIS SPACE FOR RENT https://www.youtube.com/watch?v=iB6B8jGSdLA "Thanks to muzzies and their apologist-enablers like puppy whistle, this seems to be the new norm in the world. It's spreading like a cancer, and it's time we admit we're at war with pure evil. We need to put an end to this muzzie plague, or life on Earth is going to become pure hell everywhere. We need to get these people out of every civilized country, and there's only one way to do it. IOW, we have to become like them, with an emphasis on expediency over cruelty." - Checkmate (of alt.checkmate) "Pussy Willow has just proven that Trump's crackdown on previously unenforced immigration policies is working. We'll deal with the domestic terrorists as needed, but we don't need to be letting the muzzie terrorists get a foothold in our country too. One need only look at what they're doing in Europe right now to know we're doing the right thing by keeping them out, which is our right and our duty. - Checkmate (#1 pussy willow fan) - "You just made puppy whistle's sig line longer." - Janithor - "If I have a complaint about the (Southern Poverty) Law Center's description (of the alt-right movement), it is the phrase "heavy use of social media," which implies the alt-right is a real-world movement which uses a lot of social media. This is backwards: it is an online movement which occasionally appears in the real world. Where it gets punched." - Jason Rhode - "I think we should destroy every last fucking mosque in America." - "Checkmate, DoW #1" <Lunatic.Fringe@The.Edge> proves for us that white males are violent in Message-ID: <MPG.32c5bfefd18c9a698f0a8@news.altopia.com> - Golden Killfile, June 2005 KOTM, November 2006 Bob Allisat Memorial Hook, Line & Sinker, November 2006 Special Ops Cody Memorial Purple Heart, November 2006 Special Ops Cody Memorial Purple Heart, September 2007 Tony Sidaway Memorial "Drama Queen" Award, November 2006 Busted Urinal Award, April 2007 Order of the Holey Sockpuppet, September 2007 Barbara Woodhouse Memorial Dog Whistle, September 2006 Barbara Woodhouse Memorial Dog Whistle, April 2008 Tinfoil Sombrero, February 2007 AUK Mascot, September 2007 Putting the Awards Out of Order to Screw With the OCD Fuckheads, March 2016
Re: Linux Command-Line Editors Vulnerable to High-Severity Bug
Author: Anonymous
Date: Tue, 25 Jun 2019 13:11
Date: Tue, 25 Jun 2019 13:11
6 lines
1506 bytes
1506 bytes
> > (I have never understood why anyone would want to waste their time > learning how to use that Vim crap. Just a foolish venture into > egotistical intellectual chauvinism.) Many people are not secure within themselves and like Vladimir Putin, they have to exhibit themselves by riding a horse shirtless to try to prove that they are a man. Thus it is with most who learn a skill that is actually useless to them. It is their all important inflated ego that matters, always trying to show themselves better than everyone else. Such endeavors are thrown in the trash heap by really intelligent people, like the insistence that everyone should learn a foreign language, just to loose it afterwards.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads