Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- # TODO: prints error if < 2 arguments
- output="${1}"
- date>>"${1}"
- count=0;
- while [ $# -gt 1 ]
- do
- numlines=$(wc -l "${2}")
- echo $numlines #Does it work?
- (( numlines=$numlines-"${2}" ))
- echo $numlines #How about now?
- (( count=$count+$numlines ))
- echo $count #Maybe?
- shift
- done
- # echo "$count total">>"$output"
Add Comment
Please, Sign In to add comment