OK, so we have this HNQ, which gathered quite a lot of attention, snarky comments, and a small edit war between me and another user about the title of the question . I've edited the answer to match the body of the question. Issue is that it can be viewed from different points of view: is OP aski...
Imho all edits after askubuntu.com/revisions/986395/2 were either superfluous or harmful to convey the intention of the question author as far as I understand it.
Currently I'm trying to find some files using the find command.
find -wholename "./blah/*.mp4"
This returns:
./blah/blah2/a.mp4
./blah/blah2/b.mp4
etc.
Is there anyway I can simplify the output of this so that it only returns:
blah/blah2/a.mp4 without the beginning two characters (being ./ )
...
This question is loosely related to one of my previous ones. TL;DR from muru's answer is that characters in function name have to be on Portable Character Set in order to be valid for a function name. Problem is that space is on the list (the <space> or <U0020> character), which is why I'm confus...
@Videonauth There's something you probably didn't know about at yet: unix.stackexchange.com/q/411022/246819 – do not feel obligated to upvote, I just think you might be interesting in the fact.
@Videonauth I actually (temporarily) abandoned python in favor of a remind setup that allows me to finally get rid of thunderbird+lightning for mail and calendar/notifications – such easy tasks are not supposed to take so many system resources IMO.
I did some digging around and found that the automatic clean-up for kernels is in /etc/kernel/postinst.d/apt-auto-removal and the file states:
# In the common case this results in two kernels saved (booted into the
# second-latest kernel, we install the latest kernel in an upgrade), but
# can sa...
@dessert well, one reason is to participate in obfuscated C contest, which is actually a thing; there's people writing like poems , which actually compile. But Bourne actually just liked ALGOL so much apparently, he obfuscated it for his own pleasure
@Fabby I think you just need to alter debkernels to include not only $previous_version, but also $pre-previous_version and $pre-pre-previous_version, which can be defined as pre-previous_version="$(echo "$debverlist" | sed -n 3p)" and pre-pre-previous_version="$(echo "$debverlist" | sed -n 4p)" respectively.
Of course this can only work if there are actually four kernel versions installed, else sed will… ah, just print out other versions that are kept anyway, so should do no harm.
@Fabby if you format you code by indenting it, html tags like <b> are not interpreted, if you use <pre><code> instead <b> works as expected – I suppose you wanted to print those lines bold?
Many questions tagged with bash have accepted answers using sed, awk or common *NIX utilities. Is it OK to use Python to answer questions in the same way?
In particular, I'm looking at this question that wants to randomly bring lines from one text file into another. I first thought of doing so...
Judging people's questions and dismissing them as "duplicative" fails to help anyone (except the egos of those passing judgment).
If multiple people are asking the same question, how about posting the answer IN PLAIN ENGLISH (and Spanish) and then PROVIDING A LINK to the information?
That way, ...
from a linguistical point of view, English and German are just two West Germanic dialects – they are not really different enough to count as separate languages, although the distinction between a dialect and a language is not an easy one.
Yes, that one is. Starship Troopers and Blade Runner aren't...
@dessert I had a Jewish-American colleague who was actually afraid to travel to Germany for a project.
After I burst out laughing so hard I nearly wet my pants and told him "Germany is probably the safest country on the entire planet to be a Jew", he took the first flight out...
... say someone who has had a copy of "Mein Kampf" on his PC somewhere before it came off the blacklist ...
It was and still is the same with media that incite hate, glorify anti-constitutional ideologies or carry symbols of groups with such ideologies (including most Nazi and Wehrmacht "memorabilia").
The law doesn't care if you keep that stuff at home or even show it to people in a private setting. Just don't pass it around. Exceptions for criminal prosecution, teaching, research and art exist of course.
The most interesting piece of literature I ever read (was forced to read in school) was the diary of a girl in the Bund Deutscher Mädel and it shows how the entire society was corrupted bit by small bit and if you weµre a follower and did not resist, you just slid into Nazi belief.
(one of the things that changed my life around: from that moment on, I became extremely sceptical of everything government and media)
He was Sudeten German living in Czechoslovakia who harboured much support for Hitler and his plans to "bring Germans [living in other European nations] back into the Reich" because they were generally underprivileged.
("who" = his ethnic group, not him specifically)
As far as I know he didn't think much of all that "hysteria" but, at that age, had no strong opinion or conviction to the contrary as did his parents.
@Fabby: He said, his favourite memory of the war was after he deserted around a week before the official capitulation when the remaining Wehrmacht in is area was to preoccupied to search and punish deserters, and he woke to find that the soft thing that he chose as his headrest in the dark of the previous evening turned out to be a sizeable block of cheese.
When connecting to a host via SSH, I'd like to be able to simply type ssh hostname to connect.
However, the setup we have currently means that I must type a fairly long suffix to connect, similar to hostname.hosts.companyname.com.
Is it possible to set up SSH to cycle through several hostnames ...
@ByteCommander: "Springtime for Hitler" is a musical production inside the musical "The Producers" by Mel Brooks (that was later turned into a screenplay). It's a good watch if you're looking for some light hearted yet intelligent comedy.
It should actually be more difficult to find it on Youtube in Germany because people tend to flag it as Nazi propaganda which is illegal there. And we all know that Youtube doesn't care jack s**t about groundless flags as long as they don't risk repercussions.