-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
option to ignore unmatched lines #1
Comments
An ignore unmatched may not be that hard to add. Though I personally would filter the input before it's send to prunef. You could do it easily with something like |
Well, I already does things like this:
but where it then becomes "fun" is where I have another filesystem, where I have to do this:
and the reason I need that full grep, is 'cause (a) the headers and (b) there are some 'data1/ClientB@zrep0XXX' used for the replication pushes, so in essences, the grep would've been (in both the above cases) superfluous if prunef would've --drop-unmatched-lines If there are a reason not to do it, I know how to do it, just that might've been an easy less commands |
One thing that speaks against this is that you won't notice time parsing errors. If you mess up the date format string, like again swapping %m with %d, it will work at the first 12 days of the month and than you'll notice that prunef is failing. So I guess when dropping unmatched one, we should at least fail, if the time format is wrong, but the other characters match. |
Have situations I list things like ZFS snapshots, with some "custom" snapshot names in the list or the list might include a couple of snapshots.
Instead of throwing a "Error parsing" line, perhaps have an option to ignore any unmatched lines?
The text was updated successfully, but these errors were encountered: