[Pmwiki-users] Suggestions for [[<<]] replacement.
Patrick R. Michaud
pmichaud
Wed Jan 7 08:28:31 CST 2004
On Mon, Jan 05, 2004 at 04:30:41AM +0100, Christian Ridderstr?m wrote:
> It's probably a good idea to look at how [[<<]] is used today. I did a
> simple check on how often it is used in 'my' site:
> wiki.d$ ls -1 | wc --lines
> 393
> wiki.d$ grep -l '\[\[<<]]' * | wc --lines
> 98
> where it's used in roughly 25% of the pages. However, the files aren't in
> raw form... is there a way I could 'unscramble' them?
Sure, use grep(1) and take out only the lines that begin with "text=".
E.g., something like:
grep '^text=' * | grep -l '\[\[<<]]' | wc --lines
or, to avoid the extra grep:
grep '^test=.*\[\[<<]]' * | wc --lines
Pm
More information about the pmwiki-users
mailing list