Pass : À la Découverte d'un Gestionnaire de Mot de Passe
HUC Stéphane · Wednesday, 26 October - 15:50 edit
Unix legend, who owes us nothing, keeps fixing foundational AWK code
news.movim.eu / ArsTechnica · Tuesday, 23 August - 17:50 · 1 minute
Quick & Easy Email Attachments in Linux
pubsub.slavino.sk / spam_resource · Friday, 17 September, 2021 - 12:00 · 1 minute
mb2md: A very useful linux/unix email utility
pubsub.slavino.sk / spam_resource · Monday, 9 August, 2021 - 12:00 edit
A Princeton professor, finding a little time for himself in the summer academic lull, emailed an old friend a couple months ago. Brian Kernighan said hello, asked how their US visit was going, and dropped off hundreds of lines of code that could add Unicode support for AWK, the text-parsing tool he helped create for Unix at Bell Labs in 1977.
"I have tested this a fair amount but clearly more tests are needed," Kernighan wrote in the email, posted in late May as a kind of pseudo-commit on the onetrueawk repo by longtime maintainer Arnold Robbins. "Once I figure out how ... I will try to submit a pull request. I wish I understood git better, but in spite of your help, I still don't have a proper understanding, so this may take a while."
Kernighan is the "K" in
, a special-purpose language for extracting and manipulating language that was key to Unix's pipeline features and interoperability between systems. A working
function (AWK is the language,
the command to invoke it) is critical to both Standard UNIX Specification and IEEE POSIX certification for interoperability. There are countless variants of
—including modern derivations with support for Unicode—but "One True AWK," sometimes known as
, is a kind of canonical version based on Kernighan's 1985 book
The AWK Programming Language
and his subsequent input.
Need to export a file from Linux via email? Got
? Do you even remember
? It's how we used to encode files for file sharing, back before you were born. Because I'm old.
Here's a handy one-liner that will wrap your file up as a UUEncoded attachment and mail it to the address you specify. The email should come through with a properly formatted attachment that you can then download.
Just do this:
% cat file.zip | uuencode file.zip | mail firstname.lastname@example.org
Or you can get a bit fancier and add a subject line and a proper from address (if your system doesn't add one already):
% cat file.zip | uuencode file.zip | mail -s "Export of file.zip" -a "From: Me <email@example.com>" firstname.lastname@example.org
Or you can do it as part of a shell script, with bits that look something like this:
FROM="Just Me <email@example.com>"
cat $FILE | \
uuencode $FILE \
mail -s "Export of $FILE attached" \
-a "From: $FROM" \
I know there's probably some better way to do this, but this simple example has saved me endless amounts of time lately. I hope you find it useful, too.
Now and then I'm going to start posting occasional Linux/unix email geek tips to Spam Resource. I hope you find them valuable. Feedback welcome -- let me know what you think! -- Al Iverson
The linux/unix tool mb2md does one thing and it does it well: It takes and "mbox" mailbox file and converts it into Maildir files.