1. Engineering
  2. Computer Science
  3. i am using vim unixlinux commandline program i need you...

Question: i am using vim unixlinux commandline program i need you...

Question details

I am using VIM UNIX/Linux commandline program.

I need you to add a command that will search the textfile I created of the LOGFILE, search it for the word "invalid" and replace each instance with the word "UNKNOWN".

Then count the number of every failed password message for each user, (including unknown), and print the number to the screen.

Here is what I have so far:

#!/bin/bash

mkdir tmp

yes | cp LOGFILE /tmp/temp.txt

#add stuff here

rm -rf tmp

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution