Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash -e
- typeset -g DATA=$1
- typeset -g RESULT=${2:-'result'}
- typeset -i i
- typeset -i j
- : > ${RESULT}
- for ((i = 1, j = 100; i < 1000; i += 100, j += 100)); do
- cut -d , -f ${i}-${j} ${DATA} >> ${RESULT}
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement