bolug bonner linux user group
news about wissen files archive hilfe suchen  

 

archive :: SchAN-User

druckfassung

SchAN-User

[Schan-user] Schülerdateien löschen

To: Arktur Liste <schan-user@xxxxxxxxxxxxxxxxx>
Subject: [Schan-user] Schülerdateien löschen
From: Heiner Köster <listenfach@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 29 Aug 2012 08:07:10 +0200
Guten Morgen,

unten hänge ich das Skript an, mit dem ich Schülerdateien löschen möchte. Allerdings soll nun nur noch in Ordnern gesucht werden, die mit "home/Klasse/Klasse" beginnen. Reicht es, wenn ich den Pfad unten von "/home/Klasse" auf "/home/Klasse/Klasse*" ändere?

Unter "/home/Klasse" liegt mittlerweile zu viel wichtiges Zeugs: Essensbestellung, Software... Da muss das Löschen wirklich auf die Ordner der Klassen beschränkt werden und die beginnen alle mit "Klasse", etwa "Klasse 3 Köster".

Danke und viele Grüße

Heiner


===== schnipp

#! /bin/sh
# Zum Einsatz nach den Sommerferien
# löscht Dateien mit bestimmten Endungen in /home/Klasse
# also Schülerdateien; Verzeichnisse bleiben erhalten

# Temporäre Dateien löschen
find /home/Klasse -name "*.wbk" -print0|xargs -0 /bin/rm
find /home/Klasse -name "*.tmp" -print0|xargs -0 /bin/rm
find /home/Klasse -name "*.bak" -print0|xargs -0 /bin/rm
find /home/Klasse -name "*.sik" -print0|xargs -0 /bin/rm
find /home/Klasse -name "backup*.*" -print0|xargs -0 /bin/rm
find /home/Klasse -name "~*.doc" -print0|xargs -0 /bin/rm
find /home/Klasse -name "*~*.doc*" -print0|xargs -0 /bin/rm
#
find /home/Klasse | grep "\.TXT$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.txt$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.DOC$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.doc$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.JPG$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.jpg$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.JPEG$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.jpeg$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.MP3$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.mp3$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.Mp3$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.PPT$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.ppt$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.sxw$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.sxd$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.PDF$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.pdf$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.ODT$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.odt$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.ZIP$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.zip$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.HTM$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.htm$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.BMP$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.bmp$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.WMA$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.wma$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.WAV$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.wav$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.arr$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.EXE$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.exe$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.LNK$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.lnk$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.RTF$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.rtf$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.INI$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.ini$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.DB$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.db$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.URL$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.url$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.ODG$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.odg$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.GIF$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.gif$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.XML$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.xml$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.LOG$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.log$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.js$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.css$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.DOT$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.dot$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.TIF$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.tif$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.WMF$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.wmf$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.PNG$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.png$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.SVG$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.svg$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.AVI$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.avi$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.RDF$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.rdf$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.PCX$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.pcx$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.XCF$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.xcf$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.ODB$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.odb$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.WMV$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.wmv$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.ODP$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.odp$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.ASF$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.asf$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.FTW$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.ftw$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.RAR$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.rar$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.MP4$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.mp4$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.WPL$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done
find /home/Klasse | grep "\.wpl$" | while read line ; do if [ -f "${line}" ] ; then rm 
"${line}" ; fi ; done

--
Hans-Würtz-Schule
Förderschule mit dem Schwerpunkt
Körperliche und Motorische Entwicklung
Kruppstraße 24a
38126 Braunschweig
Tel.: 0531/680 370
Fax: 0531/6 80 37 19
http://www.hans-wuertz-schule.de

_______________________________________________
schan-user mailing list
schan-user@xxxxxxxxxxxxxxxxx
http://www.heise.de/bin/newsletter/listinfo/schan-user

 « Vorige im Thread  Dieser Thread  Nächste im Thread » 

 

seitenanfang


 

news about wissen files archive hilfe suchen  
kontakt letzte änderung: 29.08.2012