Il giorno mar, 27/01/2009 alle 17.15 +0100, Premoli, Roberto ha scritto: > >> Mi spiego: ho due file della stessa lunghezza A.txt e B.tx, vorrei > >> essere in grado di generare un terzo file C.txt che sia l'AND, l'OR o > > >> il NOT dei due file. > > > >AND, OR e NOT di che tipo? Bit a bit del contenuto del file? > > > >federico > > Si. > I file A.txt e B.txt (binari o ASCII non importa) contengono una > sequenza > di byte, io dovrei fare in modo di eseguire AND OR e NOT, byte a byte, > dei file. Il problema è che non sono a conoscenza di funzioni delle shell o di comandi semplici alla sed che manipolino i singoli bit. In Python o in Perl è banale ma non so se sia quello che vuoi. federico -- Federico Di Gregorio http://people.initd.org/fog DISCLAIMER. If I receive a message from you, you are agreeing that: 1. I am by definition, "the intended recipient". 2. All information in the email is mine to do with as I see fit and make such financial profit, political mileage, or good joke as it lends itself to. In particular, I may quote it on USENET or the WWW. 3. I may take the contents as representing the views of your company. 4. This overrides any disclaimer or statement of confidentiality that may be included on your message.
Attachment:
signature.asc
Description: Questa =?ISO-8859-1?Q?=E8?= una parte del messaggio firmata digitalmente