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?
- (( count=$count+$numlines ))
- shift
- done
- # echo "$count total">>"$output"
Add Comment
Please, Sign In to add comment