>>> cat *.md5 | sed 's/[()]//g' | awk '{ print $4," ",$2 } ' | sed 's/   
>>> \+\</  /g' > $CHECKSUMFILE ;
>>> md5sum -cv $CHECKSUMFILE ;
> 
> not sure this is particularly better, but it uses fewer pipes :)
> 
> cat *.md5 | perl -e 'while ( <> ) { chomp; /^MD5\s+\(([^)]+)\).*\s+ 
> (\S*)$/ && print "$2  $1\n"; }' > $CHECKSUMFILE ;
> md5sum -cv $CHECKSUMFILE ;

While we're at it, get rid of all the pipes and shorten the Perl:

perl -ne 'chomp; /^MD5\s+\(([^)]+)\).*\s+ (\S*)$/ && print "$2  $1\n";' 
*.md5 > $CHECKSUMFILE ;
md5sum -cv $CHECKSUMFILE ;

--Ted

-- 
Ted Pavlic <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to