Using grep in a canonize file

40 views
Skip to first unread message

Francisco Hirsch

unread,
May 18, 2019, 3:56:14 PM5/18/19
to bbe...@googlegroups.com
I would appreciate clarification.
I have a dictionary file, with lots of of pairs.
….
cion ción
cion  ción    #both followed by a blank
cion\t ción\t
cion\r ción\r
…..
I would like to substitute this using grep (by an instruction in the dictionary, but no grep otherwise in the file):
cion(| |\t|\r) ción\1
Or something equivalent.
I suspect that I have to add a line previously, but I don’t understand the particular explanation in the manual.
I would appreciate help
Regards,
Francisco
--
Lic. Francisco A. Hirsch







Christopher Stone

unread,
May 21, 2019, 2:08:00 PM5/21/19
to BBEdit-Talk
On 05/18/2019, at 14:39, Francisco Hirsch <listas...@gmail.com> wrote:
I would appreciate clarification.
I have a dictionary file, with lots of of pairs.
...
I would like to substitute this using grep (by an instruction in the dictionary, but no grep otherwise in the file):

cion(| |\t|\r) ción\1
Or something equivalent.

I suspect that I have to add a line previously, but I don’t understand the particular explanation in the manual.


Hey Francisco,

Something like this?

# -*- x-bbedit-canon-case-sensitive: 1; x-bbedit-canon-grep: 1; -*-
\bcion\b ción


--
Best Regards,
Chris

Francisco A. Hirsch

unread,
May 23, 2019, 9:08:43 AM5/23/19
to BBEdit Talk
Thanks, Chris!

Regards,
Francisco
Reply all
Reply to author
Forward
0 new messages