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 revision
Previous revision
programming:bash:hello_world [2022/04/06 08:39] – created ateixeiraprogramming:bash:hello_world [2022/04/06 09:04] (current) – [The basics] ateixeira
Line 4: Line 4:
   * Take a look at the linux help sheets   * Take a look at the linux help sheets
   * Open a terminal   * Open a terminal
-  * Try it !+  * **Try it !**
 If you don't know what a command means, don't forget the linux help sheets or the really useful Manual pages directly on the terminal If you don't know what a command means, don't forget the linux help sheets or the really useful Manual pages directly on the terminal
 <code bash> <code bash>
Line 14: Line 14:
 <code bash> <code bash>
 pwd pwd
 +cd
 ls ls
 cd Documents/ cd Documents/
 +ls -la
 mkdir <your folder> mkdir <your folder>
-ls+ls -la
 cd <your folder> cd <your folder>
 pwd pwd
-ls -la+ls
 </code> </code>
  
Line 113: Line 115:
 #!/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.1649234392.txt.gz · Last modified: 2022/04/06 08:39 by ateixeira