Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FILES=/home/pi/work/coty/orders/*.xml
- for f in $FILES
- do
- grep -o -P '(?<=orderorder-no=").*?(?="><order-date)' $f | tr -d '\n'
- echo -n " "
- grep -o -P '(?<=<country-code>).*?(?=</country-code)' $f | head -1 | tr -d '\n'
- echo -n " "
- grep -o -P '(?<=<totals><merchandize-total><net-price>).*?(?=</tax>)' $f | cut -d '>' -f3 | head -1
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement