lp-translation-tools

Savvas Radevic vicedar at gmail.com
Tue Mar 31 13:44:20 BST 2009


$ rm -f output.txt
$ python lpupsourceparser.py -q -l input.txt | tee -a output.txt

[...] (Ανάλογα με το μέγεθος της λίστας, μπορεί να πάρει λίγη ώρα)

input.txt: Λίστα πακέτων jaunty (debian source packages) από το αρχείο .iso
output.txt: Το αποτέλεσμα (+pots links) μαζί με τις "ERROR:" γραμμές.

Μπορείτε να εκμεταλλευτείτε τα προγράμματα gnu/linux για να πάρετε τη
λίστα που θέλετε, όπως το grep.

- Χωρίς ERROR γραμμές:
grep -v '^ERROR' output.txt > output-noerror.txt

- Xωρίς ERROR και μόνο γραμμές που περιέχουν "ubuntu/jaunty":
grep -v '^ERROR' output.txt | grep 'ubuntu/jaunty' >
output-noerror-onlyjaunty.txt

- Xωρίς ERROR και χωρίς γραμμές που περιέχουν "ubuntu/jaunty":
grep -v '^ERROR' output.txt | grep -v 'ubuntu/jaunty' >
output-noerror-notjaunty.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: output_examples.tar.gz
Type: application/x-gzip
Size: 14131 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/ubuntu-gr/attachments/20090331/8c8f4665/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: input_output.tar.gz
Type: application/x-gzip
Size: 16160 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/ubuntu-gr/attachments/20090331/8c8f4665/attachment-0003.bin 


More information about the Ubuntu-gr mailing list