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/mindi/aux-tools/sbin/format-and-kludge-vfat

    r196 r273  
    110110umount /mnt/tmpK || Die "Can't unmount /mnt/tmpK"
    111111
    112 ideal_size=`cat /tmp/mountlist.txt | grep "$device " | tr -s ' ' ' ' | cut -d' ' -f4`
     112ideal_size=`grep "$device " /tmp/mountlist.txt | tr -s ' ' ' ' | cut -d' ' -f4`
    113113if [ "$ideal_size" = "" ]; then
    114114    LogIt "format-and-kludge-vfat --- can't find $device in mountlist" 1
Note: See TracChangeset for help on using the changeset viewer.