-
Notifications
You must be signed in to change notification settings - Fork 221
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
[feature request] Fixed-width columns #224
Comments
if there are no embedded spaces in any column values, use |
Hi @johnkerl , thank you |
And I have no error if I remove the line with empty "cells", it works with
|
I have find a solution using sed. The raw input file is this https://www.metoffice.gov.uk/pub/data/weather/uk/climate/datasets/Tmin/ranked/UK.txt My solution was to use sed in this way. At the end I have a CSV. |
@johnkerl what is NFR? Is it Non-Functional Requirements? What's the practical meaning? Thank you |
@aborruso sorry "New Feature Request" -- some issues were already using this abbreviation & some weren't & in a fit of hubris I regularized some issue titles recently :^/ Really unnecessary on my part since there's now the |
I wanted to see if mlr could solve this without more features. Assumes a known, fixed-width record format. Given input from original post (
A mlr script (
Command:
Output (
Smoke test
|
Hi @moorereason for your input file
In output
|
I didn't notice the 6-character pattern. Duh. Here's a simpler version without the need for sed:
|
Hi,
is there a way to manage this kind of text file
If I use
--inidx --ifs ' ' --repifs
I have problems with the two null values.It's a fixed width columns text file, but I do not know how to read it with mlr.
Thank you
The text was updated successfully, but these errors were encountered: