#!/bin/bash --
#
# This script looks for file context files
# that do not end with a newline
#
REF_PATH="/home/dominick/Git/refpolicy"
for i in $(/bin/find $(printf "%s" "$REF_PATH") -type f -name "*.fc") ; do
[[ "$(/bin/tail -c 1 $i | /bin/tr -dc '\n' | /bin/wc -c)" -ne 1 ]] && printf "%s\n" "Fix me: $i"
done
exit $?
#EOF
Where Else to Find Me
-
I’m not blogging much these days, and more likely posting on these
accounts: If you’d like to follow updates for the Linux Security Summit
(LSS), see here:...
1 week geleden
Geen opmerkingen:
Een reactie posten