ytjPerl has asked for the wisdom of the Perl Monks concerning the following question:
Hi guys, I am new babie in perl. I happened to come across an issue of finding a string in 'non-regular' log file. I know how to use like if(/*/) {code} to find a string "*" in .txt file, but I could not use this to find a string in the file generated by command 'tmboot -y'. The string actually is there and I am able to use notepad++ search function to find it. so the only reason I could think of is that the file is not the regular txt file. any input? thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: search a string in a non-regular file
by choroba (Cardinal) on Jul 18, 2017 at 19:48 UTC | |
|
Re: search a string in a non-regular file
by hippo (Archbishop) on Jul 18, 2017 at 21:14 UTC | |
|
Re: search a string in a non-regular file
by BillKSmith (Monsignor) on Jul 18, 2017 at 20:15 UTC | |
|
Re: search a string in a non-regular file
by Laurent_R (Canon) on Jul 19, 2017 at 08:13 UTC | |
|
Re: search a string in a non-regular file
by ytjPerl (Scribe) on Jul 19, 2017 at 17:34 UTC | |
by shmem (Chancellor) on Jul 19, 2017 at 18:26 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |