Hi,
is it possible and if 'yes' to do the following: In a text of paragraphs, there are paragraphs containing a certain keyword. I want to delete all lines of all paragraphs containing the keyword except the lines containing the keyword. And I want to delete all paragraphs containing no keyword completly. And I want to delete all paragraphs consisting only lines containing the keyword. Example: keyword is "backup" The text input /home/user/file1.txt /home/user/backup/home/user/file1.txt /home/user/backup/home/user/file3.txt /home/user/backup/home/user/file4.txt /home/user/file1a.txt /home/user/file1b.txt /home/user/file1c.txt becomes: /home/user/file1.txt best regards mcc -- Please don't send me any Word- or Powerpoint-Attachments unless it's absolutely neccessary. - Send simply Text. See http://www.gnu.org/philosophy/no-word-attachments.html In a world without fences and walls nobody needs gates and windows. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
