734 B
734 B
^
Comando integrato di Bash per sostituire rapidamente una stringa nel comando precedente ed eseguirlo. Equivalente a
!!:s^stringa1^stringa2. Vedi anche:!. Maggiori informazioni: https://gnu.org/software/bash/manual/bash.html#Event-Designators.
- Esegue il comando precedente sostituendo
stringa1constringa2:
^{{stringa1}}^{{stringa2}}
- Rimuove
stringa1dal comando precedente:
^{{stringa1}}^
- Sostituisce
stringa1constringa2nel comando precedente e aggiungestringa3alla fine:
^{{stringa1}}^{{stringa2}}^{{stringa3}}
- Sostituisce tutte le occorrenze di
stringa1:
^{{stringa1}}^{{stringa2}}^:g&
- Stampa il comando sostituito senza eseguirlo:
^{{stringa1}}^{{stringa2}}^:p