Advertisement
Sergio_Istea

for_files.sh

May 13th, 2022
823
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. dir=$1
  4.  
  5.  
  6. for file in $dir/*;do
  7.  
  8.  
  9.         [ -f "$file" ] && du -h $file
  10.  
  11.  
  12. done
  13.  
Advertisement
RAW Paste Data Copied
Advertisement