Question: Any idea why I ' m outputting extra blank lines at line 2 and 4 . I've included my code down below # ! /
Any idea why Im outputting extra blank lines at line and I've included my code down below
#binbash
echo "Dingo Truffle"
echo "Lab Failed Login Report"
echo CS Scripting Languages"
if $#ne ; then
echo "Usage: flog LOGFILE"
exit
fi
LOGFILE$
# Search for failed password attemps of any kind using grep
grep 'Failed password for $LOGFILE" sout
# Extract the name of the user who failed to supply the proper pasword including invalid users
sed n sFailed password for azAZp sout sout
# Sort the user names
sort sout sout
# Count the number of occurences of each username with uniq
uniq c sout sout
# Sort the output from uniq c:
sort knr k sout sout
# Change all instance of "invalid" to with HTMLfriendly brackets
sed sinvalid sout
# Put commas in numbers
cat sout while read mycount myuserid; do
printf d s
$mycount" $myuserid" sout
done
# add the html
printf
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
