Ignore:
Timestamp:
Jun 25, 2006, 3:56:38 AM (14 years ago)
Author:
andree
Message:

Replace occurrences of 'grep -v ... | grep -v ... | ...' with 'grep -Ev
...' for efficiency reasons and to ease trouble-shooting.

This also fixes Debian bug #222052.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/mondo/restore-scripts/mondo/make-me-bootable

    r567 r680  
    1818
    1919HAVE_ACTIVE="false"
    20 for i in `cat $1 | tr -s '\t' ' ' | cut -d' ' -f1 | grep -v "/dev/fd" | grep -v "none" | grep -v "#"` ; do
     20for i in `cat $1 | tr -s '\t' ' ' | cut -d' ' -f1 | grep -vE "/dev/fd|none|#"` ; do
    2121    mountpt=`grep "$i " $1 | tr -s '\t' ' ' | cut -d' ' -f2`
    2222    format=`grep "$i " $1 | tr -s '\t' ' ' | cut -d' ' -f3`
Note: See TracChangeset for help on using the changeset viewer.