Краткое изложениеhttps://www.linuxbabe.com/linux-server/how-to-enable-etcrc-local-with-systemd
Создать /etc/systemd/system/rc -local.service:
# /etc/systemd/system/rc-local.service
[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local
[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
[Install]
WantedBy=multi-user.target
Тогда:
sudo touch /etc/rc.local
sudo chmod +x /etc/rc.local
sudo systemctl enable rc-local
Проверить с помощью:
sudo systemctl start rc-local.service
sudo systemctl status rc-local.service
Использование Миллера(https://github.com/johnkerl/miller)и запуск
mlr --c2t -N reshape -r "^[^1]$" -o item,value \
then filter '$value=~"(2\.2\.2\.3|3\.3\.3\.3|4\.4\.4\.4|5\.5\.5\.5)"' \
then cut -x -f item \
then nest --implode --values --across-records -f 1 --nested-fs "," \
then reorder -f value data.csv >output
у вас будет
4.4.4.4 A
3.3.3.3 A,B
2.2.2.3 D
А затем с помощью списка фильтров
$ cat list
8.8.8.8
2.2.2.3
3.3.3.3
4.4.4.4
5.5.5.5
можешь бежать
mlr --tsv -N join --ul -j 1 -f list then unsparsify output
иметь
4.4.4.4 A
3.3.3.3 A,B
2.2.2.3 D
8.8.8.8
5.5.5.5