Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- sum=0
- while read line; do
- read -ra cols <<< "$line"
- ((sum += ${cols[4]}))
- done < <(ls -la | tail -n +2 )
- echo $sum
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement