check_log_files.sh 152 B

1234567891011
  1. #!/bin/bash
  2. base_dir=$1
  3. #echo num is $2
  4. for (( i=0; i<48; i++ ))
  5. do
  6. fname=$base_dir/log_file_$i
  7. tail_out=$(tail -n 1 $fname)
  8. echo $i:$tail_out
  9. done