• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3RESULT=0
4
5for i in "$@"; do
6  a="`tail -c 1 "$i"`"
7  if [ "$a" != "" ]; then
8    echo "$i does not have a trailing newline" 1>&2
9    RESULT=-1
10  fi
11done
12
13exit $RESULT
14