Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- awk 'BEGIN{ fn = "vhost_1"; n = 1}
- {print > fn
- if (substr($0,1,14) == "</VirtualHost>") {
- close (fn)
- n++
- fn = "vhost_" n
- }
- }
- ' 000-default
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement