Tag allerseits,
ich möchte in einem Shellskript mit möglicht simplen Mitteln leere
Verzeichnisse finden und löschen.
Sowas wie:
find $DIR -type d -exec CNT=ls {} \;
if [ X$CNT == X ] then rm $AKTDIR
Nur wie speichere ich gleichzeitig den aktuellen Verzeichnisnamen und
das Resultat von ls für einen Stringvergleich?
Oder gibt es eine andere, vielleicht simplere Methode?
Munter bleiben,
Marc
-- Marc Santhoff <M.Santhoff(at)web.de> To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org with "unsubscribe de-bsd-questions" in the body of the messageReceived on Mon 14 Oct 2013 - 04:25:39 CEST