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 (Giugno 2007) - Domande Thread Rating: 3 votes, 5.00 average.
Pages (571): « First ... « 443 444 445 446 [447] 448 449 450 451 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
mark
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 783 (0.10 al dì)
Location:
Corso: F49
Anno: finito!
Time Online: 8 Days, 18:34:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by xSharKMaNx
•Trovare la dimensione di tutti i file "*.c"

code:
find / -type f -name "*.c" | xargs ls -s | awk '{SUM += $1} END {print SUM}'


code:
find / -type f -name "*.c" [ ricerco tutti i file con estensione ".c"] xargs ls -s [visualizzo nella prima colonna la dimensione in kb ] awk '{SUM += $1} END {print SUM}' [ somma la prima colonna e stampa il risultato ]


Questo esercizio può essere svolto in moltissimi modi, io ho provato questa soluzione!



molto potente awk, però se devi stampare ad esempio i 5 file .c di dimensioni maggiori diventa problematico

__________________
Non ti perdere di coraggio se ti tocca lavorare molto e raccogliere poco.....

15-09-2009 21:55
Click Here to See the Profile for mark Click here to Send mark a Private Message Find more posts by mark Add mark 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:09.    Post New Thread    Post A Reply
Pages (571): « First ... « 443 444 445 446 [447] 448 449 450 451 » ... Last »   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.078 seconds (52.10% PHP - 47.90% MySQL) con 24 query.