ES-02 - SOLUZIONI PROPOSTE DAL DOCENTE ============================================================= PER FAVORIRE LA LEGGIBILITA' TALVOLTA I COMANDI SONO DISPOSTI UNO PER RIGA. ============================================================= [01] ~/ProgJava11/ES02: cp ~rbruni/provami . ./provami # Il programma esegue un ciclo infinito stampando "Fermami, se ti riesce!" Ctrl+C ============================================================= [02] ~/ProgJava11/ES02: ./provami ps aux | grep "provami" (cerco il PID del processo provami) kill -9 nnnn (dove nnnn e' il PID del processo provami) ============================================================= [03] ~: cp -r ~rbruni/sisal ProgJava11/ES02 ============================================================= [04] ~/ProgJava11/ES02: ls -R sisal ============================================================= [05] ~/ProgJava11/ES02: cat sisal/year2009/month0?/week0?*.txt ============================================================= [06] ~/ProgJava11/ES02: cat sisal/year2009/month0?/week0?*.txt > estrazioni.txt ============================================================= [07] ~/ProgJava11/ES02: cut -d" " -f7 estrazioni.txt ============================================================= [08] ~/ProgJava11/ES02: cut -d" " -f7 estrazioni.txt | sort ============================================================= [09] ~/ProgJava11/ES02: cut -d" " -f7 estrazioni.txt | sort | uniq ============================================================= [10] ~/ProgJava11/ES02: cut -d" " -f7 estrazioni.txt | sort| uniq -u | wc -l ============================================================= [11] ~/ProgJava11/ES02: cut -d" " -f1-6 estrazioni.txt | grep 11 | wc -l ============================================================= [12] ~/ProgJava11/ES02: cut -d" " -f1 estrazioni.txt > temp.txt cut -d" " -f2 estrazioni.txt >> temp.txt cut -d" " -f3 estrazioni.txt >> temp.txt cut -d" " -f4 estrazioni.txt >> temp.txt cut -d" " -f5 estrazioni.txt >> temp.txt cut -d" " -f6 estrazioni.txt >> temp.txt sort temp.txt | uniq > estratti.txt rm temp.txt ============================================================= [13] ~/ProgJava11/ES02: tar -zcvf sisal.tgz sisal zip -r sisal sisal =============================================================