Короткоеsedрешение:
sed 's/^"\|"$//g; s/"*,"*/,/g;' file
Илиawkподход:
awk -F, '{ for(i=1;i<=NF;i++) gsub(/^"|"$/,"",$i) }1' OFS=',' file
Выходные данные (для обоих подходов):
ssl-server,ssl.server.truststore.type,jks
tez-env,enable_heap_"\n"dump,false
tez-env,heap_dump_location"\n"port,/tmp
tez-env,tez_user,tez
Как сказал Муру, Вы можете изменить его, как показано ниже.
[Unit]
Description=b service
After=a.service
[Service]
Type=simple
#restart on failure and tries 5 times. If fail in all, then reboot the system
ExecStartPre=/usr/bin/python /home/pi/.clar/c.py
ExecStart=/usr/bin/python /home/pi/.clar/b.py
Restart=on-failure
RestartSec=15
StartLimitBurst=5
StartLimitInterval=2min
StartLimitAction=reboot
[Install]
WantedBy=a.service
Затем вам нужно выполнить sudo systemctl disable b.service
иsudo systemctl enable b.service