User Tools

Site Tools


programming:bash:hello_world

Differences

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

Link to this comparison view

Next revisionBoth sides next revision
programming:bash:hello_world [2022/04/06 08:39] – created ateixeiraprogramming:bash:hello_world [2022/04/06 08:58] – [Exercice 4 : for] ateixeira
Line 113: Line 113:
 #!/bin/bash #!/bin/bash
  
-echo "Choose the maximum number : "+echo -e "Hello !\nChoose the maximum number : "
 read number read number
 +echo "Display of numbers from 1 to $number"
  
 for x in $(seq 1 $number); for x in $(seq 1 $number);
 do do
- echo "Hello $x"+    echo "$x"
 done done
 </code> </code>
programming/bash/hello_world.txt · Last modified: 2022/04/06 09:04 by ateixeira