Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -e
- filename="$1"
- counter=0
- start=$SECONDS
- while read -r line
- do
- value=$(echo $line | cut -d, -f10)
- counter=$((counter+1))
- if ! ((counter % 10000)); then
- duration=$((SECONDS-start))
- echo $start
- echo "Processed 10000 in "$duration" seconds"
- fi
- done < "$filename"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement