Skip to content

Instantly share code, notes, and snippets.

@ViktorSimko
Created December 10, 2016 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ViktorSimko/b5d1f6eb0278d67ad59cb776359a390c to your computer and use it in GitHub Desktop.
Save ViktorSimko/b5d1f6eb0278d67ad59cb776359a390c to your computer and use it in GitHub Desktop.
#!/bin/bash
sum=0
while read line; do
read -ra cols <<< "$line"
((sum += ${cols[4]}))
done < <(ls -la | tail -n +2 )
echo $sum
@lajoskvcs
Copy link

Ez így hibás!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment