Show
Ignore:
Timestamp:
11/28/06 03:20:50 (2 years ago)
Author:
anarcat
Message:

faire que wc marche aussi avec le chemin absolu

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc/trunk/src/quota_get.sh

    r1744 r1748  
    88QUOTA=/usr/bin/quota 
    99GREP=/bin/grep 
     10WC=/usr/bin/wc 
    1011 
    1112DATA_PART=`$DF ${ALTERNC_LOC} 2>/dev/null | $AWK '/^\// { print $1 }'` 
     
    2122# quota will split its display on two lines if QUOTA_PART is bigger than 15 
    2223# characters. *sigh* 
    23 PART_LEN=`echo -n "$QUOTA_PART" | wc -c` 
     24PART_LEN=`echo -n "$QUOTA_PART" | $WC -c` 
    2425if [ "$PART_LEN" -gt 15 ]; then 
    2526    $QUOTA -g "$1" |