Ignore:
Timestamp:
Jan 3, 2006, 4:09:12 PM (18 years ago)
Author:
bcornec
Message:

Patches from Sébastien Aperghis-Tramoni <maddingue@…>

replace several occurences of "cat .. | grep .."
or with similar commands that accept filenames as arguments.
+ some sort | uniq replaced by sort -u

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.06/mondo/mondo/restore-scripts/mondo/restore-bigfiles-from-iso

    r30 r273  
    4141        echo -en "."
    4242        if echo "$slicename" | grep "slice-[0-9]*.00000\.dat" 2> /dev/null; then
    43             CHECKSUM=`cat $slicename | head -n1 | cut -f1`
    44             OUTFNAME=`cat $slicename | head -n1 | cut -f2`
     43            CHECKSUM=`head -n1 $slicename | cut -f1`
     44            OUTFNAME=`head -n1 $slicename | cut -f2`
    4545            OUTFNAME=`echo "$restorepath/$OUTFNAME" | tr -s '/' '/'`
    4646            echo "Now restoring $OUTFNAME"
Note: See TracChangeset for help on using the changeset viewer.