Ignore:
Timestamp:
Jan 3, 2006, 4:59:29 PM (15 years ago)
Author:
bcornec
Message:

more cat commands removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.06/mondo/mondo/mondo-makefilelist

    r273 r275  
    11#!/bin/sh
     2#
     3# $Id$
     4
    25#
    36# mondo-makefilelist
     
    8285    res=`grep -v "Permission denied" $TMP/find.log`
    8386    if [ "$res" != "" ] ; then
    84     cat $TMP/find.log
    85     cat $TMP/find.log >> $LOGFILE
     87    cat $TMP/find.log | tee -a $LOGFILE
    8688    fi
    8789# include various directory _paths_ (not contents of dirs: that comes later)
     
    105107
    106108# Patch from Andy Glass - 03/03/2002
    107     for i in `cat /etc/fstab | tr -s '\t' ' ' | cut -d' ' -f2 | grep -v '-'` ; do
     109    for i in `tr -s '\t' ' ' < /etc/fstab | cut -d' ' -f2 | grep -v '-'` ; do
    108110# End patch
    109 #     for i in `cat /etc/fstab | tr -s '\t' ' ' | cut -d' ' -f2` ; do
    110111        grep -vx "$i/lost+found" $output | grep -vx $i"lost+found" > $output.MID
    111112        sync
     
    113114    done
    114115# exclude .journal files (ext3)
    115     for i in `cat /etc/fstab | tr -s '\t' ' ' | grep "ext3" | cut -d' ' -f2` ; do
     116    for i in `tr -s '\t' ' ' < /etc/fstab | grep "ext3" | cut -d' ' -f2` ; do
    116117    grep -vx "$i/\.journal" $output | grep -vx "$i\.journal" | grep -vx "$i\.autofsck" > $output.MID
    117118        sync
Note: See TracChangeset for help on using the changeset viewer.