in reply to Unable to match newline
Your oneliner is reading one line, but your match target spreads across multiple lines. You could instead slurp the whole file into memory, or maybe just read the first two kilobyte of any file to match against it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Unable to match newline
by robinson (Novice) on Nov 17, 2015 at 20:09 UTC | |
by Preceptor (Deacon) on Nov 20, 2015 at 16:04 UTC |