Re: Deleting lines steered by another file

2015-03-08 Thread Gary Johnson
On 2015-03-08, Meino Cramer wrote: Hi Matthias, I did: grep -Fvf B.txt A.html which gaves me: grep: conflicting matchers specified and output nothing. That error occurs when you try to specify more than one matcher, where matchers are -E for egrep -F for fgrep -P for

Re: Deleting lines steered by another file

2015-03-08 Thread Mathias Rav
Hi Meino You can accomplish this using grep on the command-line. If you want to search A.html for the strings given as lines in B.txt, use the command: grep -Ff B.txt A.html If you want to see lines of A.html that don't contain any of the strings given as lines in B.txt, use the command: grep

Re: Deleting lines steered by another file

2015-03-08 Thread Paul Isambert
Le dimanche 08 mars 2015 à 06:05, meino.cra...@gmx.de a écrit: Hi, hopefully this can be done with vim in some way: (using Linux) I have an file (html) which contains lines containing lines like this one (some stuff)1741_word_anotherword(some stuff) (pattern: .*number_text.*) I

Re: Deleting lines steered by another file

2015-03-08 Thread Paul Isambert
Sorry, this line exe silent g/[^[:alnum:]] . matchstr(l, '\d\+') . [^[:alnum:]]/delete should have been: exe silent g/[^[:digit:]] . matchstr(l, '\d\+') . _/delete (I did not read your message properly.) Best, Paul -- -- You received this message from the vim_use maillist. Do

Re: Deleting lines steered by another file

2015-03-08 Thread Meino . Cramer
Paul Isambert zappathus...@free.fr [15-03-08 11:32]: Sorry, this line exe silent g/[^[:alnum:]] . matchstr(l, '\d\+') . [^[:alnum:]]/delete should have been: exe silent g/[^[:digit:]] . matchstr(l, '\d\+') . _/delete (I did not read your message properly.) Best, Paul

Re: Deleting lines steered by another file

2015-03-08 Thread Meino . Cramer
Hi Matthias, I did: grep -Fvf B.txt A.html which gaves me: grep: conflicting matchers specified and output nothing. Best regards, Meino Mathias Rav mathias...@gmail.com [15-03-08 09:52]: Hi Meino You can accomplish this using grep on the command-line. If you want to search A.html

Deleting lines steered by another file

2015-03-07 Thread Meino . Cramer
Hi, hopefully this can be done with vim in some way: (using Linux) I have an file (html) which contains lines containing lines like this one (some stuff)1741_word_anotherword(some stuff) (pattern: .*number_text.*) I another file I have only a list of numbers, which may or may not listed in the