Thread: sed help
View Single Post
  #3   (View Single Post)  
Old 26th May 2008
harisman's Avatar
harisman harisman is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Hellas (Greece)
Posts: 66
Default

This is my approach, being an awk zealot

Code:
awk '/<s>/ {gsub(/<s>|<\/s>/,"",$1); gsub(/[^0-9]+/,"0",$1);print}' /var/tmp/localweather.xml
Reply With Quote