Advertisement
Guest User

Untitled

a guest
Jun 18th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. if [ $# -eq "$NO_ARGS" ]
  2.  then
  3.   printf "$DIR:\n"
  4.   for line in $(find "$DIR" -mtime -1 -type f 2>/dev/null)
  5.    do
  6.     n_file=$(($n_file + 1));
  7.     size=$(( $(du --bytes $line | awk '{print $1}') + size ));
  8.     ls -l -G $line
  9.    done
  10.   printf "File number: $n_file\nTotal size: $size\n\n"
  11. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement