Fun, Mood
Weekend
At work I’ve set up a little WordPress network to record workflow notes. One blog for quality management, one used by person in charge of the concrete plant – I do mildly dislike the word “manager” as it is wildly misused here in Italy – and another for the administrative office. Too bad I just…
You can now stay on top of the discussions you care about, right from your Reader.
Sorgente: Keep Track of Your Conversations in One Place — The WordPress.com Blog
It may be pretty useful
tl;dr: Don’t buy hardware from Razer and expect firmware updates to fix security problems on Linux.
OpenSC2K OpenSC2K – An Open Source remake of SimCity 2000 written in JavaScript using HTML5 Canvas API, SQLite and built on Electron.
Sometimes a cleanup is necessary. I stress my little dear Thunderbird a little too much, as I ask it to easily juggle almost fifteen years of email. Today I had to follow Transferring data to a new profile – Thunderbird – MozillaZine Knowledge Base for a fresh start.
<span class="pln">find </span><span class="pun">.</span> <span class="pun">-</span><span class="pln">type d </span><span class="pun">|</span> <span class="kwd">while</span><span class="pln"> read file</span><span class="pun">;</span> <span class="kwd">do</span><span class="pln"> echo $file</span><span class="pun">;</span> <span class="kwd">done</span>However, doesn’t work if the file-name contains newlines. The above is the only solution i know of when you actually want to have the directory name in a variable. If you just want to execute some command, use xargs.
<span class="pln">find </span><span class="pun">.</span> <span class="pun">-</span><span class="pln">type d </span><span class="pun">-</span><span class="pln">print0 </span><span class="pun">|</span><span class="pln"> xargs </span><span class="pun">-</span><span class="lit">0</span><span class="pln"> echo </span><span class="str">'The directory is: '</span>
Sorgente: How can I escape white space in a bash loop list? – Stack Overflow
Furthermore BASH Shell: For Loop File Names With Spaces suggets:
find . -print0 | while read -d $'\0' file do echo -v "$file" done
that should handle even the weirdest file name
I may have founded it: Make — The Theme Foundry