User Tools

Site Tools



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

Link to this comparison view

bash_scripting [2021/07/22 02:43]
vissie created
bash_scripting [2021/07/22 02:49] (current)
Line 1: Line 1:
 =====Ask for input===== =====Ask for input=====
 +<sxh bash; gutter: false>
 echo Hello, who am I talking to? echo Hello, who am I talking to?
 read varname read varname
 +echo It\'s nice to meet you $varname
 +=====Check if file does not exist=====
 +<sxh bash; gutter: false>
 +if [ ! -f "$FILE" ]; then
 +    echo "$FILE does not exist."
bash_scripting.1626947020.txt.gz ยท Last modified: 2021/07/22 02:43 by vissie