All pastes #921081 Raw Edit

Anonymous

public shellscript v1 · immutable
#921081 ·published 2008-02-27 20:23 UTC
rendered paste body
#!/bin/shfilename="none"filesize=0find . -type f -exec file -i {} \; | grep text | sed 's/:.*//g' | while read i;$        tmpsize=$(stat -c %s $i);        echo $i - $tmpsize        if [ $tmpsize -gt $filesize ]; then                echo new biggest!                filename=$i                filesize=$tmpsize        fidoneecho $filename - $filesize bytes