Advertisement
Guest User

Untitled

a guest
Jan 26th, 2016
68
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. if [ $2 == -m1 ]; then
  4. dirs=$(find "$1" -maxdepth 1)
  5. for dir in ${dirs}
  6. do
  7. stat=$(stat -c "%n "$'\t'" %s "$'\t'" %A "$'\t'" %F" "$dir" | expand -t 30,40,50,60)
  8. stat=${stat##"$1"}
  9. echo "$stat" | more -d
  10. done
  11. fi
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement