mirror of
https://github.com/onceupon/Bash-Oneliner
synced 2025-02-16 21:18:23 +00:00
add loop
if else Test if file exist
This commit is contained in:
parent
81b3375b2f
commit
2226834210
1 changed files with 4 additions and 0 deletions
|
@ -756,6 +756,10 @@ then
|
|||
fi
|
||||
```
|
||||
|
||||
##### if else Test if file exist
|
||||
```bash
|
||||
if [ -e $filename ]; then echo -e "file exists!"; else mkdir $filename; fi
|
||||
```
|
||||
|
||||
##### For loop
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue