Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi N - Z > Sistemi operativi I > Esame di laboratorio gennaio 2008 Thread Rating: 1 votes, 5.00 average.
Pages (2): « 1 [2]   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Bloom
.illuminato.

User info:
Registered: May 2006
Posts: 229 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 3:14:49 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

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

08-02-2008 13:02
Click Here to See the Profile for Bloom Click here to Send Bloom a Private Message Find more posts by Bloom Add Bloom to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
jacktheripper
.arcimaestro.

User info:
Registered: Oct 2004
Posts: 264 (0.04 al dì)
Location: milano
Corso: informatica
Anno: 1 specialistica info
Time Online: 1 Day, 23:04:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

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 ?

19-02-2008 22:37
Click Here to See the Profile for jacktheripper Click here to Send jacktheripper a Private Message Find more posts by jacktheripper Add jacktheripper to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Bloom
.illuminato.

User info:
Registered: May 2006
Posts: 229 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 3:14:49 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

prova:
#!/bin/sh

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

20-02-2008 09:47
Click Here to See the Profile for Bloom Click here to Send Bloom a Private Message Find more posts by Bloom Add Bloom to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Bloom
.illuminato.

User info:
Registered: May 2006
Posts: 229 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 3:14:49 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

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

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


ps opzione -b non esiste su minix

20-02-2008 09:51
Click Here to See the Profile for Bloom Click here to Send Bloom a Private Message Find more posts by Bloom Add Bloom to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Bloom
.illuminato.

User info:
Registered: May 2006
Posts: 229 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 3:14:49 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

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)

20-02-2008 11:00
Click Here to See the Profile for Bloom Click here to Send Bloom a Private Message Find more posts by Bloom Add Bloom to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
darkman13
.arcimaestro.

User info:
Registered: Feb 2004
Posts: 272 (0.04 al dì)
Location:
Corso:
Anno:
Time Online: 3 Days, 14:00:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

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

20-02-2008 16:35
Click Here to See the Profile for darkman13 Click here to Send darkman13 a Private Message Find more posts by darkman13 Add darkman13 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 04:57.    Post New Thread    Post A Reply
Pages (2): « 1 [2]   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.035 seconds (75.37% PHP - 24.63% MySQL) con 26 query.