> Cum pot sa testez daca exista vreun fisier intr-un director? > > Stiti vreo metoda mai eleganta decat asta? > if [ "$(ls * 2>/dev/null)" = "" ]; then echo nimic; fi >
if [ -z "$(ls * 2>/dev/null)" ]; then echo nimic; fi :) Cristi > _______________________________________________ > RLUG mailing list > [email protected] > http://lists.lug.ro/mailman/listinfo/rlug > _______________________________________________ RLUG mailing list [email protected] http://lists.lug.ro/mailman/listinfo/rlug
