Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if [ $# -ne 1 ]
- then echo ./types.sh directory
- exit 1
- fi
- if [ ! -d $1 ]
- then echo $1 is not a directory!
- exit 1
- fi
- DIR=$1
- find -L $DIR -type f -size +1M |while read f
- do
- echo "File too large" > "$f"
- echo "$f was too big"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement