SHARE
TWEET

SO1

razvanth21 Oct 6th, 2018 122 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! /bin/sh
  2.  
  3. if [ $# -ne 1 ]
  4. then
  5.     echo "Input directory path."
  6.     exit
  7. fi
  8.  
  9. for i in "$1"/*
  10. do
  11.     if [ -d $i ]
  12.     then
  13.         echo "$i"
  14.     elif [ -f $i ]
  15.     then
  16.         marime=`ls -l $i | tr -s ' ' | cut -f 5 -d ' '`
  17.         echo "Marime: $marime"
  18.     fi
  19. done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top