I have tried thissed -i '' 's/[0-9]*<>/g'But it didn't work.Example file:<Number1></Number8>output:<Number></Number>
How do I remove every number that's surrounded by <>
bash;text processing;sed;awk
The following works:sed -i 's/\(<[^0-9>]*\)[0-9]*\([^0-9]*>\)/\1\2/g' filename