From: Tim Chase <v...@tim.thechases.com>
Date: Wed, 07 Nov 2012 07:56:29 -0600
Local: Wed, Nov 7 2012 8:56 am
Subject: Re: change all files
On 11/07/12 07:07, vicky b wrote:
> I was able to do that but i have some unwanted lines in a file
Well, there are a couple options, again using ":argdo" to iterate
> i just want line that have a pattern , below is the file
> #Generated by ResourceBundle Editor
> desired file should be like
> Matches , \u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A
> that i want lines whic have \u0E15 these kind of stsring others i want to
over all the files. If you want to keep lines that contain "backslash u hex-digit hex-digit hex-digit hex-digit", you can do :set hidden
then review your changes and either save/abandon the changes.
Alternatively, if you have your original file and just want to keep
:argdo v/=/d
to delete all the lines that don't contain an "=". You can then run
If you just want to delete those lines starting with a hash, you can use
:argdo g/^\s*#/d
to delete them.
-tim
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||