This website requires JavaScript.
Explore
Help
Sign In
mirror
/
RosettaCodeData
mirror of
https://github.com/acmeism/RosettaCodeData.git
Watch
1
Star
0
Fork
You've already forked RosettaCodeData
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
main
RosettaCodeData
/
Task
/
Empty-directory
/
UNIX-Shell
/
empty-directory.sh
4 lines
101 B
Bash
Raw
Permalink
Blame
History
#!/bin/sh
DIR
=
/tmp/foo
[
`
ls -a
$DIR
|
wc -l
`
-gt
2
]
&&
echo
$DIR
is NOT empty
||
echo
$DIR
is empty
Reference in New Issue
View Git Blame
Copy Permalink