User Tools

Site Tools


informatique:linux:bash

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
informatique:linux:bash [2020/11/11 16:53] – Options & co pteuinformatique:linux:bash [2020/11/12 15:00] – [Rappels et substitutions] pteu
Line 50: Line 50:
   * ''!!'' (re)lancer la dernière commande   * ''!!'' (re)lancer la dernière commande
   * ''!$'' le dernier argument de la dernière commande   * ''!$'' le dernier argument de la dernière commande
-  * ''^foo^bar'' lancer la dernière commande en remplaçant "foo" par "bar". Pour supprimer "foo" : ''^foo'' tout court. +  * ''^foo^bar'' relancer la dernière commande en remplaçant la première occurrence de "foo" par "bar". Pour supprimer "foo" : ''^foo'' tout court. 
 +  * ''!!:gs/foo/bar'' relance la dernière commande en remplaçant toutes les occurrences de "foo" par "bar".
 =====Syntaxe===== =====Syntaxe=====
  
informatique/linux/bash.txt · Last modified: 2023/01/09 10:52 by pteu