Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. sum=0
  4. while read line; do
  5. read -ra cols <<< "$line"
  6. ((sum += ${cols[4]}))
  7. done < <(ls -la | tail -n +2 )
  8. echo $sum
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement