Bonjour,
j'ai besoin d'insérer la touche "exit" dans un script (j'utilise notepadqq), comment faire ?
#!/bin/sh
gcalcli --conky calw 2 |
sed -e 's/^[(0\x71^[(B/?/g' \
-e 's/^[(0\x78^[(B/?/g' \
-e 's/^[(0\x6A^[(B/?/g' \
-e 's/^[(0\x6B^[(B/?/g' \
-e 's/^[(0\x6C^[(B/?/g' \
-e 's/^[(0\x6D^[(B/?/g' \
-e 's/^[(0\x6E^[(B/?/g' \
-e 's/^[(0\x74^[(B/?/g' \
-e 's/^[(0\x75^[(B/?/g' \
-e 's/^[(0\x76^[(B/?/g' \
-e 's/^[(0\x77^[(B/?/g'
Important Note: ^[
in the above script must be the actual ESCAPE key (i.e. press Ctrl-V ESC in vi editor).
Merci.