Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Activity for alx‭

Type On... Excerpt Status Date
Comment Post #289899 What's the reason for redirecting the whole `enter()` and `leave()` functions to /dev/tty? Do both setterm(1) and tput(1) need to be redirected? Or is it only necessary to redirect one of them?
(more)
over 1 year ago
Comment Post #289875 Thanks! Just a minor nitpick: `$COLUMNS` is not available (unless I export it manually). I replaced it with `tput cols`: ```sh $ cat /usr/local/bin/ovr #!/bin/sh sed "s/^\(.\{,$(tput cols)\}\).*$/\1/;2,\$s/^/\x1B[1A\x1B[K/"; ``` (see <https://stackoverflow.com/a/263900>)
(more)
over 1 year ago
Edit Post #289876 Post edited:
over 1 year ago
Edit Post #289876 Post edited:
over 1 year ago
Edit Post #289876 Post edited:
over 1 year ago
Edit Post #289876 Initial revision over 1 year ago
Answer A: Ergonomic way to search man pages
Unix filters are quite handy. First of all, you can get an index of any manual page with a simple grep(1): ```sh $ man pacman | grep '^[^ ]' PACMAN(8) Pacman Manual PACMAN(8) NAME SYNOPSIS DESCRIPTION OPERATIONS OPTIONS TRANSACTION OP...
(more)
over 1 year ago
Edit Post #289869 Post edited:
over 1 year ago
Edit Post #289869 Initial revision over 1 year ago
Question How to overwrite each line of STDOUT with the next one?
I wrote a filter program to overwrite each line with the next one. ```sh $ cat /usr/local/bin/ovr #!/bin/sh sed '2,$s/^/\x1B[1A\x1B[K/'; ``` Here's the behavior: ```sh $ echo | ovr $ echo 'foo' | ovr foo $ echo -e 'foo\nbar' | ovr bar $ echo -e 'foo\nbar\nbaz' | ovr baz $ ech...
(more)
over 1 year ago
Edit Post #289854 Post edited:
over 1 year ago
Edit Post #289854 Post edited:
over 1 year ago
Edit Post #289854 Post edited:
over 1 year ago
Edit Post #289854 Initial revision over 1 year ago
Answer A: How to get a mailto: URI out of abook(1)
There's no such feature. But it's easy to write. Apply this patch: ```diff From 8ea7d1cf4933ca24006308ac61aa50fb8ab33b02 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sat, 30 Sep 2023 17:44:03 +0200 Subject: [PATCH] query: outformat: Add "mailto" format Signed-off-by: Alejandro ...
(more)
over 1 year ago
Comment Post #289799 Yep. I hoped there was a way that I didn't find, but it seems the way is brute force.
(more)
over 1 year ago
Edit Post #289799 Post edited:
Add example of expected result
over 1 year ago
Edit Post #289799 Initial revision over 1 year ago
Question How to get a mailto: URI out of abook(1)
I store my address book with abook(1). Let's say I want to introduce some contact in some field that accepts the usual `name ` format. How can I ask abook(1) to produce that format? The addressbook entry is the following: ``` [0] name=Alejandro Colomar email=alx@kernel.org,alx.manp...
(more)
over 1 year ago
Edit Post #289717 Initial revision over 1 year ago
Question How to see all header fields of an email in mutt?
Neomutt (and probably Mutt too, but I didn't try) seems to be hiding header fields from email, such as the Message-ID field, and fields that are added by SMTP servers when they receive the message. How can one ask it to show the entire mail source, as if one was reading the file itself? In othe...
(more)
over 1 year ago
Edit Post #286875 Post edited:
over 2 years ago
Edit Post #286875 Post edited:
over 2 years ago
Edit Post #286875 Initial revision over 2 years ago
Question Who creates subdirs under `/run`?
A system daemon needs to create several files under `/run/program-name/` (and possibly other subdirs of that). They are the PID file, and at least one Unix socket file (but maybe more). The FHS specifies that those files go there, under a `/run` subdir: . (In some Unix systems, it would still be `...
(more)
over 2 years ago