Sounds like a job for awk, but I'm sure someone here will have a more
detailed idea.

On Thu, Mar 29, 2018 at 9:51 AM, <tu...@posteo.de> wrote:

> Hi,
>
> I have a textfile with lot of lines.
> These lines have the following format
>
> <command> a-<name of parameter> <value>
> <command> b-<name of parameter> <value>
>
> where
> <command> is a command identical for all lines
> <name of parameter> are different commands.
> <value> is a numeric value.
>
> The commands are paired. A certain command exist in
> the form 'a-command' and 'b-command'.
>
> The lines are sorted in way that lines with a certain
> command ("a-" and "b-" form) are always paired and
> grouped together.
>
> I want to check, whether all paired lines have attached
> the same value.
>
> There are way too many lines to do this manually and doing
> so would be much too error prone.
>
> Can this done with vim automagically and how?
> Or: Is there already a unix tool (I am on Linux), which
> could do this check?
>
> Thanks a lot for any help in advance!
> Cheers!
> Meino
>
>
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vim_use+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to