Re: [GLLUG] Grep question
Hi John In your case it's the hyphen that's special, it is used as range indicator, e.g. [a-z] means [abcdef...z], unless it's at the end of the bracket expression To quote from the grep man page "...to include a literal - place it last." Although I've always been putting the "-" at the start, which is what you have done in your second example. Cheers, f. On 27/10/2022 15:02, John Levin via GLLUG wrote: Dear list, In cleaning up mountains of OCR'd text, I've found Grep doing something I don't undesrtand. The aim is to locate lines ending with certain punctuation marks(-—.) and spaces. But depending on the order of those punctuation marks, I get different results. With the full stop listed first, I get two results, one of which doesn't fit the criteria; with the stop third I get 5 lines correctly matching the criteria (and I presume, all the lines that do match). johnl@Hasek:~/github/statutes$ grep ' [.-— ]\{3,\}$' W*/mon*.txt and every of them are and is hereby obliged to accept, re- ... 1. s. -- GLLUG mailing list GLLUG@mailman.lug.org.uk https://mailman.lug.org.uk/mailman/listinfo/gllug
Re: [GLLUG] basic IPv6 questions
On 03/10/2021 20:12, Carles Pina i Estany via GLLUG wrote: I have human parsing issues! I read the output of "ifconfig" and "route" without any effort. I need some effort for the output of "ip a", "ip r" and I miss some parameters sometimes. You may find the "-c" option helpful, e.g. "ip -c a" or "ip -c r". The colour output does help me with the dense output :-) HTH Cheers, Fred -- GLLUG mailing list GLLUG@mailman.lug.org.uk https://mailman.lug.org.uk/mailman/listinfo/gllug
Re: [GLLUG] SMS text scam warning
On 24/04/2021 11:26, John Edwards wrote: Hmmm, On Sat, Apr 24, 2021 at 11:12:12AM +0100, Fred Youhanaie via GLLUG wrote: It is worth subscribing to one or more of their various RSS feeds, listed at https://www.ncsc.gov.uk/information/rss-feeds "You need to enable JavaScript to run this app." (And there is nothing in the content of the page that really needs JavaScript, just 4 links to xml files) I imagine the rest is just part of the general content framework, such as "was this page helpful? Yes/No"! The downside of the modern web pages, however, I've seen worse :( Cheers, Fred -- GLLUG mailing list GLLUG@mailman.lug.org.uk https://mailman.lug.org.uk/mailman/listinfo/gllug
Re: [GLLUG] SMS text scam warning
On 24/04/2021 10:18, Alain D D Williams via GLLUG wrote: On Sat, Apr 24, 2021 at 10:10:03AM +0100, Greater London Linux UUG wrote: Hello, bbc.co.uk/news/technology have relayed a warning from GCHQ about huge numbers of messages sent to UK mobile phones claiming that there is a parcel on its way, please download the "app" to get tracking details. It is nothing to do with a parcel, the "app" is spyware aimed mainly at Android phones. How hard would it be to get the app removed ? +1 to the warning but please do more. I must admit to being pleased that GCHQ is coming out of their bunker and shouting warnings like this -- well overdue; these scams are truely a threat to national security - or perhaps security of many UK nationals. The public side of GCHQ is NCSC https://www.ncsc.gov.uk/section/about-ncsc/what-we-do It is worth subscribing to one or more of their various RSS feeds, listed at https://www.ncsc.gov.uk/information/rss-feeds This particular alert is explained here: https://www.ncsc.gov.uk/guidance/flubot-guidance-for-text-message-scam Cheers, Fred -- GLLUG mailing list GLLUG@mailman.lug.org.uk https://mailman.lug.org.uk/mailman/listinfo/gllug
Re: [GLLUG] read -t 1 hangs on reading from an unconnected pipe.
Hi Tim Happy New Year to you too. This is expected behaviour with pipes. The first process to open the pipe will block until the other end opens too. You confirm with the following - the first echo does not happen until the shell itself has completed the open (/tmp/pipe & Cheers, Fred On 07/01/2021 09:31, Tim Woodall via GLLUG wrote: Happy new year to all. I didn't expect this: tim@einstein(9):~$ mkfifo /tmp/pipe tim@einstein(9):~$ time read -t 1 /tmp/pipe I had expected the read to time out after one second. Is there any way to make read always timeout, even if the other end of the pipe isn't connected? Tim. -- GLLUG mailing list GLLUG@mailman.lug.org.uk https://mailman.lug.org.uk/mailman/listinfo/gllug
Re: [GLLUG] Teddy bear principle
Hi Andrew On 23/12/2020 10:42, Andrew Black via GLLUG wrote: Happy christmas everyone Some time ago someone suggested the idea of solving a tech problem by explaining something to you teddy. He is very stupid so it makes sure you explain it well. Sometimes the process of explaining makes you find the thing the clue you have missed. I cant put my finger on where it came from (does it matter). Google is taking me to all sorts of sites like "how to make teddies" and "why teddies are called ted". I tend to use wikipedia for such questions - https://en.wikipedia.org/wiki/Teddy_bear For your Christmas homework you can try Martin's answer in the wikipedia search box ;-) I find it SOMETIMES explaining helps, but sometimes can get you further into the misunderstanding that is causing the problem. Googling for a solution when you are looking at a bad solution... Asking on Stackoverflow and like can be same: "You dont want to do X, you want to do Y" "Yes in an ideal wolrd but if I do Y I will ahve a partial X and partial Y" Any thoughts... What works for me in most cases is to rephrase the query, or even reverse the order of the keywords! Have a good one Fred -- GLLUG mailing list GLLUG@mailman.lug.org.uk https://mailman.lug.org.uk/mailman/listinfo/gllug
Re: [GLLUG] Internet Data Rate
On 13/05/2020 17:30, Jan van Bergen via GLLUG wrote: On 2020-05-13 17:20, James Courtier-Dutton via GLLUG wrote: On Wed, 13 May 2020 at 16:14, Marco van Beek via GLLUG wrote: > ...MUST NOT (rfc2119) > > I bet you know what BSI 0 is as well :-) I once worked on a bid where the customer said we had to be 100% compliant to all the requirements. It was valued at about £10Million. So, I was working on the compliance statement, checking that our product and solution would be fully compliant and identifying what development work needed to be done, when I came across RFC 1149 on page 53 of the requirements. That RFC 1149 is surprising difficult to implement in software so we responded NC to it. Apparently, we were the only supplier that responded with a 99% compliance SOC. We won the bid. :-) That is a standard trick, when we created RFQs in a previous company we always put in a few April 1st RFCs. At least it would tell you who actually read the RFQ. And these were not small £10Million contracts either :) Were you by any chance inspired by the Van Halen contract with the m&m clause? ;-) -- GLLUG mailing list GLLUG@mailman.lug.org.uk https://mailman.lug.org.uk/mailman/listinfo/gllug