SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the following script if you just want to use shell scripting without awk or other interpreters:
#!/bin/bash total=0 for number in `cat files.txt | xargs ls -l | cut -c 23-30`; do let total=$total+$number done echo $total