Skip to content
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

Easily allow disregarding timestamps, etc. #3

Open
ibotty opened this issue Feb 26, 2021 · 3 comments
Open

Easily allow disregarding timestamps, etc. #3

ibotty opened this issue Feb 26, 2021 · 3 comments

Comments

@ibotty
Copy link

ibotty commented Feb 26, 2021

Of course that can be done with filters before, but it would be easier to be able to specify an option to e.g., ignore changed numbers or timestamp-like data.

I assume simply regexp-changing the string to hash will allow that. It would only need to find nice regular expressions for some common filters.

@ysf
Copy link
Owner

ysf commented Feb 26, 2021

You mean something like an integrated cut ? Do you have an example usecase? I don't know if I understand it correctly and don't want to agree or rule it out before that.

@ibotty
Copy link
Author

ibotty commented Feb 27, 2021

I am mostly interested in log file analysis where I sometimes have timestamps in front or random IDs that are irrelevant for the bigger picture. Usually I use a sed 's/.../XXX/ | sort -u`, but that's not optimal.

@ysf
Copy link
Owner

ysf commented Mar 1, 2021

Would it be helpful if anewer had a parameter that would skip the first x chars of the line? I think this could be done without loosing much performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants