Advertisement
Sergio_Istea

for_files.sh

May 13th, 2022
975
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.10 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment
Advertisement