~cszikszoy/do-plugins/fix-confluence

« back to all changes in this revision

Viewing changes to extract_references.sh

  • Committer: Christopher Halse Rogers
  • Date: 2009-01-04 11:09:49 UTC
  • Revision ID: raof@ubuntu.com-20090104110949-njnueagdupxf392d
Improve regex for reference matching

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
 
3
3
REFERENCES=$(egrep "ProjectReference" "$1" | \
4
 
            egrep -o "refto=\"[[:alnum:].]+," | \
 
4
            egrep -o "refto=\"[[:alnum:].-]+," | \
5
5
            sed s/refto=\"// | sed s/,// | sort)
6
6
 
7
7
OLD_IFS=$IFS