<div dir="ltr">Hi,<div>I was hoping to find a lens for a generic file like   /etc/motd  ..</div><div>I need to look for certain illegal strings as well as verify some strings exist.</div><div><br></div><div>I would imagine the key is line# and value would be the entire line ..</div><div>I guess the lack of keys in the motd may prohibit this ?</div><div><br></div><div>I wrote a simple ( lens creator newbie )   lens to do this ..</div><div>Is this 2request worth submitting ?  Or can we introduce my simple lens into the library ?</div><div> </div><div>Here ..</div><div><br></div><div><div>module Motd =</div><div>  autoload xfm</div><div><br></div><div>let word = /[^# \n\t\/]+/</div><div><br></div><div>let sto_line = store /[^# \t\n].*$/</div><div><br></div><div>let record = [ key word . (Util.del_ws_tab . sto_line)? . Util.eol ]</div><div><br></div><div>let lns = ( Util.empty | Util.comment | record ) *</div><div>let filter = (</div><div>   incl "/etc/motd" .</div><div>   incl "/etc/issue" .</div><div>   incl "/etc/<a href="http://issue.net">issue.net</a>" )</div><div>let xfm = transform lns filter</div></div><div><br></div><div><br></div></div>