From: Nick H. <nic...@ho...> - 2011-06-10 23:42:36
|
On 10/06/11 18:14, doug wrote: > On 09/06/11 21:36, Nick Hall wrote: >> > <snip> >>> As far as editors are concerned, I normally use kate - but >>> my current version isn't as friendly as it used to be for >>> handling regex and I hadn't been able to get it to replace >>> satisfactorily. I'll have to go back and look again, Benny. >>> I'm familiar, if not fully at ease, with vim, so I'll try >>> Nick's recipe. >> You can also use the vi substitute command with sed from the command line: >> >> sed 's/^[a-zA-Z]*,[a-zA-Z]*,/&,,,/' in.txt> out.txt >> >> >> An editor will be easier for you though, but I thought you might find >> this interesting. >> >> Nick. >> >> > <snip> > > That's something I'll really have to read, learn and > inwardly digest! I mentioned it to give an example of how useful learning regular expressions can be. sed allows you to edit files in a script. Nick. > Thanks, > Doug > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gramps-users mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-users > > |