User Tools

Site Tools


informatique:linux:programmation_shell

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:programmation_shell [2019/03/26 07:59] – [Les tableaux] parcourir par une boucle for pteuinformatique:linux:programmation_shell [2019/04/24 07:16] – [read] pteu
Line 258: Line 258:
 read < fichier.txt read < fichier.txt
  
-# souvent utilisé dans une boucle while +# souvent utilisé dans une boucle while pour le lire ligne par ligne :
-# exemple pour afficher le fichier ligne par ligne :+
 while read line; do while read line; do
   echo $line   echo $line
informatique/linux/programmation_shell.txt · Last modified: 2023/10/02 13:35 by pteu