.dsy:it. Pages (2): « 1 [2]
Show 150 posts per page

.dsy:it. (http://www.dsy.it/forum/)
- Sistemi operativi I (http://www.dsy.it/forum/forumdisplay.php?forumid=269)
-- Esame di laboratorio gennaio 2008 (http://www.dsy.it/forum/showthread.php?threadid=33615)


Posted by Bloom on 08-02-2008 13:02:

Non funziona,dice che c'è un then inaspettato.


Posted by jacktheripper on 19-02-2008 22:37:

questo script

#!/bin/sh

for i in `ls -b $1`;
do
echo $i
done



Se si trova davanti a file con spazi l'assegnazione a $i del nome del file non funziona e si ferma al carattere di escape che introduce il primo spazio.
Come ai può fare ?


Posted by Bloom on 20-02-2008 09:47:

prova:
#!/bin/sh

for i in $(ls -b $1); do
echo "$1"
done


Posted by Bloom on 20-02-2008 09:51:

Originally posted by Bloom
prova:
#!/bin/sh

for i in $(ls -b $1); do
echo "$1"
done


ps opzione -b non esiste su minix


Posted by Bloom on 20-02-2008 11:00:

ciao,
se devo cercare tutti i file eseguibili che hanno al loro interno la parola copyright non ho problemi.
find / -type f -perm -111|xargs grep -l "copyright"

ho problemi quando invece inserisco l'opzione -i nel grep ma mi da un errore del tipo grep: not enough memory.
ps (mi stampa cmonunque dei risultati)


Posted by darkman13 on 20-02-2008 16:35:

Ragazzi, qualcuno sa la data dell esame di lab.??? Non la trovo da nessuna parte!


All times are GMT. The time now is 02:58. Pages (2): « 1 [2]
Show all 21 posts from this thread on one page

Powered by: vBulletin Version 2.3.1
Copyright © Jelsoft Enterprises Limited 2000 - 2002.