mirror of
https://github.com/onceupon/Bash-Oneliner
synced 2025-02-16 21:18:23 +00:00
add loop
This commit is contained in:
parent
35663d37df
commit
51ed9e01c9
1 changed files with 10 additions and 0 deletions
10
README.md
10
README.md
|
@ -713,6 +713,16 @@ if [[$age >21]]
|
|||
```
|
||||
//[[ ]] use for comparison
|
||||
|
||||
|
||||
#####test if file exist
|
||||
```bash
|
||||
if [ -e $DF ]
|
||||
then
|
||||
echo -e “file exists!|”
|
||||
fi
|
||||
```
|
||||
|
||||
|
||||
#####for loop
|
||||
|
||||
```bash
|
||||
|
|
Loading…
Add table
Reference in a new issue