Question: Stuck on a linux coding question, got an idea but need help what I have so far #!/bin/bash #Exik von Elm #Lab 3-Failed Login Report
Stuck on a linux coding question, got an idea but need help
what I have so far

![Languages if [ -z "$1" ] then fi echo "Usage: flog LOGFILE"](https://s3.amazonaws.com/si.experts.images/answers/2024/05/664cc6d495bcb_668664cc6d405fb8.jpg)
#!/bin/bash #Exik von Elm #Lab 3-Failed Login Report #CS 3030 - Scripting Languages if [ -z "$1" ] then fi echo "Usage: flog LOGFILE" exit 1 #grab current date rptdate='date' sed -n "s/.*Failed password for \([a-z0-9A-Z_]*\) */\1,p" $1 >slout sort s2out uniq - s3out sort -kl, lnr -k2, 2 s3out >s4out sed "s/invalid/\ < UNKOWN\>/" s5out cat s5out while read mycount myuserid; do printf " 'd %s " "Smycount" "Smyuserid" >>flog.html done #adding header for huml sed -i "1s/^/\ Failed Login Attempts Report $rptdate /" flog.html echo " " >>./flog.html sed -i '$3/$/ /' flog.html rm ./s*out exit 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
