0.0.3 • Published 2 years ago

if-exist v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Check if file or dir exists

Usage

Given that there is ./album.txt on the disk.

# Check if album.txt exists
if-exist ./album.txt && echo "album exists"

# Check if phone.txt does not exist
if-exist ./phone.txt || echo "phone does not exist"

# Create phone.txt if does not exist
if-exist -n ./phone.txt && echo "+12345" > phone.txt
0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago