From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.2.5 Date: Sat, 6 Mar 2010 22:34:20 +0300 From: Afanasov Dmitry To: devel-newbies@lists.altlinux.org Message-ID: <20100306193417.GA4226@utvuk.ender.rk> References: <20100306203333.458f19ca@HOMENET-MAIN.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="C7zPtVaVf+AK4Oqc" Content-Disposition: inline In-Reply-To: <20100306203333.458f19ca@HOMENET-MAIN.localdomain> User-Agent: Mutt/1.5.20 (2009-06-23) Subject: Re: [newbies] =?koi8-r?b?0MXSxcTB3sEg0MHSwc3F1NLP1yDXIGF3ayAuLi4gyczJ?= =?koi8-r?b?IMvByyDQzyDE0tXHz83V?= X-BeenThere: devel-newbies@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: "devel@ where you _can_ ask" List-Id: "devel@ where you _can_ ask" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Mar 2010 19:34:41 -0000 Archived-At: List-Archive: --C7zPtVaVf+AK4Oqc Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 06, 2010 at 08:33:33PM +0200, Vladimir A. Svyatoshenko wrote: > for f in * > do > tmp=3D`md5sum "$f" | awk '{print $1}'` > awk '{if($1 !=3D $tmp) print $2}' ~/book=D9.csv > # mv "$f" /mnt/hash/`md5sum "$f" | awk '{print $1}'` > done =D1 =C2 =D0=CF=D0=D2=CF=C2=CF=D7=C1=CC =D4=C1=CB: find -type f -exec md5sum "{}" + | cut -d' ' -f1 | while read tmp; do awk -= v tmp=3Dtmp '{if($1 !=3D tmp) print $2}' ~/books.csv =C8=CF=D4=D1 =DE=D4=CF =DC=D4=CF =DA=C1 =D0=D2=CF=D7=C5=D2=CB=C1: awk '{if(= $1 !=3D $tmp) print $2}' ~/book=D9.csv - =CD=CE=C5 =CE=C5 =D0=CF=CE=D1=D4=CE=CF :) --=20 =F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD =E1=C6=C1=CE=C1=D3=CF=D7 =E4=CD=C9=D4=D2=C9=CA --C7zPtVaVf+AK4Oqc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (GNU/Linux) iEYEARECAAYFAkuSrjkACgkQ72GKvac0Iyz/+QCdH3KHkWP/ga2KN9dlpXKc34Sa vDoAni9GwgJhw/+ShMI5FweykG5IwPTK =mg9Q -----END PGP SIGNATURE----- --C7zPtVaVf+AK4Oqc--