31.05.2013 Views

Slides Corso Linux - Base (aggiornate al 10.2010) - LUG Roma3

Slides Corso Linux - Base (aggiornate al 10.2010) - LUG Roma3

Slides Corso Linux - Base (aggiornate al 10.2010) - LUG Roma3

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

awk<br />

Il seguente comando fornisce su std output le linee di lunghezza<br />

maggiore di 10 caratteri del file prova (length è una funzione<br />

predefinita):<br />

awk ’{ if (length >10) print $0 }’ prova<br />

Esercizio: Scrivere un comando awk per stampare il numero<br />

massimo di campi di una linea in un dato file.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!