Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. if [ $# -ne 1 ]
  2. then  echo ./types.sh directory
  3.       exit 1
  4. fi
  5.  
  6. if [ ! -d $1 ]
  7. then echo $1 is not a directory!
  8.      exit 1
  9. fi
  10.  
  11. DIR=$1
  12.  
  13.  
  14. find -L $DIR -type f -size +1M |while read f
  15. do
  16.   echo "File too large" > "$f"
  17.   echo "$f was too big"
  18. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement