#!/bin/sh bold=`tput smso` end_bold=`tput rmso` #find /users/isty? -name core -type f 2> /dev/null /bin/ls -l `find /home -name core -type f 2> /dev/null`|while read line do set 1 $line ; shift if [ "$#" -ge 9 ] ; then ksize=`expr $5 / 1024` msize=`expr $ksize / 1024` shift 8 if [ "$msize" -gt 0 ] ; then tput bold printf "%10d Mo\t%s${end_bold}\n" "$msize" "$*" else printf "%10d ko\t%s\n" "$ksize" "$*" fi fi done