Re: Finding a string in a file
On May 28, 2:52 pm, apogeusiste...@gmail.com wrote:
> Hi:
> I need search a specified string in a file, after the word
> "mounting" , like this:
>
> solaris> cat file
> netbackup, orac_ux001 backup, streaming yes, multiplexing ok ,
> mounting M00541 police enabled, data file
>
> Which awk command can I issue to extract only the "M00541" string
> inside a file ?
>
> Thanks
Why not use grep ?
grep -i mounting file ???????
This will extract all instances' of mounting and its associated line.
|