← Back to team overview

sslug-teknik team mailing list archive

Re: Kopierings job

 

On Thu, 2002-02-14 at 09:07, Mogens Valentin wrote:
> 
> find -options |cp src dst
> Læs man find
> Sorry kortfattetheden, travlt...

feks noget i denne stil

#!/bin/sh

find /opt/mirror/*.iso -exec diff -q {} . \; 2>tmpfil.$$
cat tmpfil.$$ | while read i; do
  tt=`echo $i|cut -d: -f2|cut -c4-`
  echo cp \"/opt/mp3/$tt\" .
done
rm tmpfil.$$

/Kim



Follow ups

References