bash - finding particular word in each line and display result in unix shell scripting -


I want to see the appearance of any word like raj or rohit (Ignoring case) in the form of an independent word in each line of the file. If the match is found then pass the "MILLE" and if not otherwise the other file "can not be found", so there should be entries for each line.

Example

Say Input File ( input.txt )

  Secrets  
< P> Output file (like file.out )

former> found found

  #! Awk -f {print / \ & lt; (Raj | Rohit) \ & gt; /? "Found": "not found"}  

Comments

Popular posts from this blog

c# - Highlight all words containing a letter in a richtextbox -

Editing Python Class in Shell and SQLAlchemy -

java - JavaFX WebEngine Video Playback in Linux -