dev/bash/xml/xmlstarlet/xmlattrsort.sh

14 lines
199 B
Bash
Executable File

#!/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 '