Skip to content

Instantly share code, notes, and snippets.

View d33pcode's full-sized avatar

Marco Panunzio d33pcode

View GitHub Profile
@d33pcode
d33pcode / check_if_file_exists.sh
Last active March 4, 2022 18:14
Bash snippets
#If the file doesn't exist, create the folder and the file in it.
if [ ! -f "$FILE" ]; then
mkdir -p $FOLDER
touch "$FOLDER/$FILE"
fi