Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ $2 == -m1 ]; then
- dirs=$(find "$1" -maxdepth 1)
- for dir in ${dirs}
- do
- stat=$(stat -c "%n "$'\t'" %s "$'\t'" %A "$'\t'" %F" "$dir" | expand -t 30,40,50,60)
- stat=${stat##"$1"}
- echo "$stat" | more -d
- done
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement