Skip to content

⭐ Rated 4.9/5 by 8,400+ students  |  🎓 Expert writers in 80+ subjects  |  ✅ 100% original, no AI  |  🔒 Confidential & secure

Home Blog

Bash scripting

5 min read

Assessment Brief

Coursework piling up? Get expert help today.

Whether it's weekly coursework, term assignments, or portfolio tasks, our writers understand module-level expectations. We match you with a writer in your subject area who delivers fully referenced, properly formatted coursework on your exact deadline.

✓ Plagiarism-free · ✓ 100% human · ✓ Free revisions · ✓ Confidential

Help With My Coursework

🔒 No payment to start · From 3 hrs

cript shall be named ~/cs3030/lab3/flog and be marked executable. Here is how you execute your script:
./flog LOGFILE
Your script shall search LOGFILE for all lines containing this string:
“Failed password for USERID”
where USERID is either the name of a user or the word “invalid”. You are to perform the following
operations:
• Change the word “invalid” to
• Count the number of every failed password messages for each user (including )
• Sort the output first by number of occurrences in descending order, then by userid in ascending order
• Output a header with the current date as shown below
• Punctuate all large numbers with commas for readability (hint: printf)
• Produce an HTML document on stdout with , , and tags as shown below
• “” should be output using the HTML characters “<” and “>”
• Print Usage: flog LOGFILE and exit with return code 1 if the user does not specify a LOGFILE
When your script is working, test it with the provided sample logfile:

Coursework piling up? Get expert help today.

Whether it's weekly coursework, term assignments, or portfolio tasks, our writers understand module-level expectations. We match you with a writer in your subject area who delivers fully referenced, properly formatted coursework on your exact deadline.

✓ Plagiarism-free · ✓ 100% human · ✓ Free revisions · ✓ Confidential

Help With My Coursework

🔒 No payment to start · From 3 hrs

Need help with your assignment?

Expert writers available now. Original work, no AI, free revisions.

🔒 No payment to start · Free revisions · Money-back guarantee

4.9 ★

Student rating

8,400+

Papers delivered

97%

On-time delivery

Why students choose Scholaris

  • 100% human writing, no AI
  • Plagiarism report with every order
  • Deadlines from 3 hours
  • Money-back guarantee
  • Free unlimited revisions

Related Study Guides