Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

if file not exists

#!/bin/bash
file="/.config/backup.cfg"
if [ ! -f "$file" ]
then
    echo "$0: File '${file}' not found."
fi
Comment

PREVIOUS NEXT
Code Example
Shell :: args in shell 
Shell :: how to push cloned repo 
Shell :: add folders to gitignore 
Shell :: influxdb version 
Shell :: how to make makefile 
Shell :: Fetch submodules recursively 
Shell :: run powershell script from wsl bash 
Shell :: powershell script example 
Shell :: how to convert colab notebook to html 
Shell :: update node manjaro 
Shell :: firebase realtime database delete all data 
Shell :: delete a git branch 
Shell :: fish set environment variable 
Shell :: how to deploy react and backend to github pages 
Shell :: git diff 
Shell :: sed add newline 
Shell :: merge branch to master 
Shell :: cannot reindex from a duplicate axis 
Shell :: vim plug not working 
Shell :: move directory with files linux 
Shell :: install nvm mac 
Shell :: mkdir command 
Shell :: W: GPG error: http://packages.ros.org/ros/ubuntu xenial InRelease: The following signatures were invalid: KEYEXPIRED 1622248854 
Shell :: install grafana on amazon linux 2 
Shell :: open vs code from terminal 
Shell :: keyboard continuously backspace not working linux 
Shell :: linux find type of desktop 
Shell :: amend commit change description 
Shell :: command line if output of command is equal to string 
Shell :: colcon build number of threads 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =