That's still too much work (you have to repeat it for every subdirectory of
every repository).  Using zsh I would do something like

```
perl -pi -e 's/@@/^&/g' /mypath/**/*.{hs,rst}
```

i.e. do the replacement on every .hs and .rst file occurring anywhere in
the directory hierarchy.  Bash globbing is not quite as powerful, but you
can instead do something like

```
find . -name '*.hs' -or -name '*.rst' | xargs -L 1 perl -e 's/@@/^&/g'
```

and then of course carefully examine the diff before recording a git commit
in each repo, to make sure it did the right thing.


On Mon, Oct 21, 2013 at 8:13 AM, Jeffrey Rosenbluth <
notifications@github.com> wrote:

> In src/Diagrams/Coordinates.hs:
>
> > @@ -32,8 +27,8 @@ infixl 7 :&
> >
> >
> >  -- | Types which are instances of the @Coordinates@ class can be
> > ---   constructed using '&' (for example, a three-dimensional vector
> > ---   could be constructed by @1 & 6 & 3@), and deconstructed using
> > +--   constructed using '@@' (for example, a three-dimensional vector
>
> Would this do it?
>
> perl -pi -e 's/@@/^&/g' /mypath/diagrams-lib/src/diagrams/*
>
> and also on TwoD, ThreeD and the other subdirectories
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/diagrams/diagrams-lib/pull/131/files#r7091615>
> .
>