Aragorn ha scritto:
- Codice: Seleziona tutto
aragorn@MinasTirith:~$ #!/bin/sh
aragorn@MinasTirith:~$ for file in `find /lib/modules -name "*.ko"`; do if -e $file.gz ; then echo "$file.gz should be removed"; fi; done
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
bash: -e: command not found
evudentemente non mi sono spiegato bene tu devi aprire un editor (tipo gedit se usi gnome) copiare quelle due righe e salvare il file (per esempio mioscript.sh) poi dai i permessi di esecuzione come ti ho scritto infine da shell ti posizioni nella cartella dove lo hai salvato e dai ./mioscript.sh