On 21/01/16 14:02, @lbutlr wrote:
On Jan 17, 2016, at 7:19 AM, udi M <uuddii(_at_)eng(_dot_)tau(_dot_)ac(_dot_)il> wrote:
I could not check it now but, you can try, find line with more then three "="s
"^[ =]+===[= ]+$" and then count the "="s from the MATCHed:
Right, but what I want is to match any lien that contains nothing but the same characters repeated x times. So I want to match
===============
------------------
qqqqqqqqqqqqqqqqqqqq
\\\\\\\\\\\\\\\
It is a shell job not for procmail: Get the Line and tr(1) it
and then compare the length:
X=$(expr length $LINE)
Y=$(tr -s '[:graph:]' <<<"$LINE")
Y=$(expr length $Y)
[[ $Y == 1 ]] && [[ $X > 14 ]] && echo "I found
line made of one char that constantly repeat more then 14 times"
--udi
/////////////////////////////////
[[[[[[[[[[[[[[[[[[
Etc.
But not match -=-=-=-=-=-=-=-=
|
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail