User Tools

Site Tools


Sidebar

bash_scripting

Ask for input

#!/bin/bash
echo Hello, who am I talking to?
read varname
echo It\'s nice to meet you $varname

Check if file does not exist

#!/bin/bash
FILE=/etc/docker
if [ ! -f "$FILE" ]; then
    echo "$FILE does not exist."
fi

bash_scripting.txt · Last modified: 2021/07/22 02:49 by vissie