#journalctl -xe
ExecReload=/bin/kill -s HUP $MAINPID
#!/bin/bash
NAME="/tmp/$(date +%Y%m%d_%H%M%S).gif"
DEFAULT_DURATION=10
DURATION=10
echo "Select capture area" | xcowsay -t 1
AREA="$(xrectsel)"
IFS=+ read DIM X Y <<< $AREA
IFS=x read W H <<< $DIM
echo ""
#read -p "Enter recording duration in seconds: " USERDUR
# Duration and output file
#if [ $USERDUR -gt 0 ]; then
#DURATION=$USERDUR
#else
#DURATION=$DEFAULT_DURATION
#fi
echo "$DURATION sec. Recording has started..." | xcowsay -t 1
byzanz-record --cursor --duration=$DURATION --x=$X --y=$Y --width=$W --height=$H "$NAME"
#echo -e "Recording finished\n$NAME" | xcowsay -t 1
if [ -f "$NAME" ]; then
# Open file in defaul viewer
xdg-open "$NAME"
# xviewer /tmp/"$NAME"
fi
написать функцию для: "ab2(3(c)d)" -> "abcсcdccсd"
Сделал решение для конкретного примера, попросили сделать функцию для любых схожих данных
MakeCert /n [publisher] /r /h 0 /eku "1.3.6.1.5.5.7.3.3,1.3.6.1.4.1.311.10.3.13" /e 12/31/2099 /sv cert.pvk cert.cer
Pvk2Pfx /pvk cert.pvk /spc cert.cer /pfx cert.pfx
SignTool sign /fd SHA256 /a /f cert.pfx output.msix