Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Create file if not exist bash

#! /bin/bash 
if [[ ! -e file.txt ]]; then
    touch file.txt
fi
 
PREVIOUS NEXT
Tagged: #Create #file #exist #bash
ADD COMMENT
Topic
Name
8+7 =