Guest User

Untitled

a guest
May 11th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Awk 0.23 KB | None | 0 0
  1. {
  2.  
  3. if ($0 == "</li>")
  4. {
  5.     k++;
  6.     prev_li=1
  7. }
  8. else
  9. {
  10.     if (prev_li==1)
  11.     {
  12.         if ($0 == "<li>" && k % 2 != 0)
  13.         {
  14.            
  15.         }
  16.         else
  17.         {
  18.             print "</li>";
  19.             print $0
  20.         }
  21.     }
  22.     else
  23.     {
  24.         print $0;
  25.     }
  26.  
  27.     prev_li = 0
  28. }
  29.  
  30. }
Add Comment
Please, Sign In to add comment