Shell Scripting Guide
2. Dezember 2009
Kommentare deaktiviert für Shell Scripting Guide By webpirat
Hier findet Ihr den Shell Scripting Guide:
Dann kann man beispielsweise so kleine Helferlein zum Löschen von Logs und Caches wie diesen hier basteln:
#!/bin/bash cd `dirname $0` # go to scripts dir cd .. # step ahead arr[0]='Application1/app/cache/*' arr[1]='Application1/var/cache/*' arr[2]='Application2/application/cache/*' arr[3]='Application2/application/logs/*' arr[4]='Application2/pub/tmp/*' arr[5]='Application3/application/cache/*' arr[6]='Application3/application/logs/*' arr[7]='Application3/pub/tmp/*' i=0 while [ $i -lt ${#arr[@]} ] do rm -rf ${arr[$i]} echo "${arr[$i]} deleted" (( i=$i+1 )) done
Neueste Beiträge
Kategorien
- Agavi
- Android
- ANT
- Apache
- Bildbearbeitung
- CMS Systeme
- Codeigniter
- CSS
- Debugging
- Deployment
- Doctrine ORM
- Flash
- Frameworks
- GIT
- Javascript
- Kanban
- Kohana
- Layout & Styles
- Lightroom
- Lighttpd
- Linux
- Management & Prozesse
- MySQL
- Nginx
- OffTopic
- Photographie
- Photoshop
- PHP
- PhpMyAdmin
- PHPUnit
- Postfix
- Propel ORM
- Ruby On Rails
- Scrum
- Server
- Shell
- Sicherheit
- SOAP
- Social Media
- Sonata
- SVN
- Symfony2
- Versionierung
- VIM
- Wordpress
- XDebug
- XML
- XT Commerce
- Zend