mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
print strings as single lines for easy comparison
This commit is contained in:
parent
b0e6f24bda
commit
75aaec676c
1 changed files with 6 additions and 1 deletions
|
@ -22,7 +22,12 @@ list_ids() {
|
|||
|
||||
list_pairs() {
|
||||
XML_FILE=$1
|
||||
xmlstarlet sel -T -t -m "/resources/string" -v "concat(.,'|')" -n $XML_FILE
|
||||
#xmlstarlet sel -t -m "//string" -v @name -o ':' -v . -n $XML_FILE | tr -d '\n' | sed 's, *, ,g'
|
||||
for NAME in $(list_ids $XML_FILE); do
|
||||
xmlstarlet sel -t -m "//string[@name='$NAME']" -v @name -o ':' -v . $XML_FILE \
|
||||
| tr -d '\n' | sed 's, *, ,g'
|
||||
echo ""
|
||||
done
|
||||
}
|
||||
|
||||
while [ $# -gt 0 ]; do
|
||||
|
|
Loading…
Reference in a new issue