#!/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
Linux Security Summit 2023 Videos & Slides
-
Videos and slides from the 2023 Linux Security summits may be found here:
Linux Security Summit North America (LSS-NA), May 10-12 2023, Vancouver,
Canada. ...
10 maanden geleden
Geen opmerkingen:
Een reactie posten