Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/sh
- if [ $# -ne 1 ]
- then
- echo "Input directory path."
- exit
- fi
- for i in "$1"/*
- do
- if [ -d $i ]
- then
- echo "$i"
- elif [ -f $i ]
- then
- marime=`ls -l $i | tr -s ' ' | cut -f 5 -d ' '`
- echo "Marime: $marime"
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement