dev/bash/xml/xmlstarlet/xmlattrsort.sh

14 lines
199 B
Bash
Raw Normal View History

2011-04-07 14:37:48 +04:00
#!/bin/bash
SRC=$1
str=str
while [[ "$str" != "" ]]; do
read str
tag_name=`sed "s~^[\t,\ ]*\(<[^\t,^\ ]*\)\(.*\)~\1~g"`
#~ echo $str
done
#~ cat $1 | iconv -f cp1251 -t utf-8 | grep -v '<Ch '