Writing Millerish to clean empty lines and whitespaces #643
NikosAlexandris
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Cleaning, sort of the hard way
Initially, some input files with 2 columns each
Then, a slightly
sed
-adventurous cleaning action (meanwhile, I revisited the Glossary a couple of times, for example the XTAB term)Consulting the documentation
Searching for the term
white
in johnkerl.org/miller6/ the commandclean-whitespace
appeared!Reading also through the table of contents (right margin) in Reference > Main reference > List of verbs, I spotted
skip-trivial-records
! Just what I required to recompose the cleaning action:Removing the
head
commands (used above to get the same number of output lines) and using simplymlr
(I have an oldermlr
installation on my system, so I use a binary above downloaded from Releases) we havevs
Though it seems it's not possible to use less pipes in this example, don't we agree that the latter command is easier to read?
What it does is:
space
characterSpeaking Millerish...
Thinking about it, the command could also be like:
Isn't this simple and expressive language that helps to concentrate in the actual work?
Beta Was this translation helpful? Give feedback.
All reactions