how to get data between td tags in unix shell script -


i want data between td tags in unix shell script in generalize way.

for example in following

<td style="padding:3px;" align="center">123.456</td> 

how retrieve 123.456 in generalize way.

thanks

you can try sed,

sat:~# cat file <td style="padding:3px;" align="center">123.456</td> <td>sat</td> sat:~#   sat:~# sed 's/<td\(.*[^<>]\+\?>\)\(.*\)<\/td>/\2/g' file 123.456 sat sat:~#  

i hope you.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -