Guest User

Untitled

a guest
Jun 25th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
  4. <meta name="generator" content="SQL*Plus 12.2.0">
  5. <style type='text/css'> body {font:10pt Arial,Helvetica,sans-serif; color:black; background:White;} p {font:10pt Arial,Helvetica,sans-serif; color:black; background:White;} table,tr,td {font:10pt Arial,Helvetica,sans-serif; color:Black; background:#f7f7e7; padding:0px 0px 0px 0px; margin:0px 0px 0px 0px;} th {font:bold 10pt Arial,Helvetica,sans-serif; color:#336699; background:#cccc99; padding:0px 0px 0px 0px;} h1 {font:16pt Arial,Helvetica,Geneva,sans-serif; color:#336699; background-color:White; border-bottom:1px solid #cccc99; margin-top:0pt; margin-bottom:0pt; padding:0px 0px 0px 0px;-
  6. } h2 {font:bold 10pt Arial,Helvetica,Geneva,sans-serif; color:#336699; background-color:White; margin-top:4pt; margin-bottom:0pt;} a {font:9pt Arial,Helvetica,sans-serif; color:#663300; background:#ffffff; margin-top:0pt; margin-bottom:0pt; vertical-align:top;}</style><title>SQL*Plus Report</title>
  7. </head>
  8. <body>
  9. <p>
  10. <table border='1' width='90%' align='center' summary='Script output'>
  11. <tr>
  12. <th scope="col">
  13. NAME
  14. </th>
  15. <th scope="col">
  16. FREE_PERCENT
  17. </th>
  18. </tr>
  19. <tr>
  20. <td>
  21. DG_BACKUP
  22. </td>
  23. <td>
  24. 50%
  25. </td>
  26. </tr>
  27. <tr>
  28. <td>
  29. DG_DATA
  30. </td>
  31. <td>
  32. 96%
  33. </td>
  34. </tr>
  35. <tr>
  36. <td>
  37. DG_INDEX
  38. </td>
  39. <td>
  40. 80%
  41. </td>
  42. </tr>
  43. <tr>
  44. <td>
  45. DG_ORA
  46. </td>
  47. <td>
  48. 19%
  49. </td>
  50. </tr>
  51. </table>
  52. <p>
  53. <br>
  54. </body>
  55. </html>
  56.  
  57. <td bgcolor="red">
  58.  
  59. number_of_lines_test=(`grep -n % test.html |sed -e '1d' |awk -F"[:%]" '{if ($2 <= 50) print $1}'`)
  60. for i in `seq 0 $((${#number_of_lines_test[@]} - 1))`
  61. do
  62. sed -i -e "$((${number_of_lines_test[i]} - 1))s/<td>/<td bgcolor="red">/" test.html
  63. done
Add Comment
Please, Sign In to add comment