0.0.3 • Published 1 year ago

if-exist v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago