Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
  2. maxThreads="150" scheme="https" secure="true"
  3. keystoreFile="/opt/cloudhost/tomcat6/security/keystore.jks" keystorePass="changeit"
  4. clientAuth="false" sslProtocols="TLSv1,TLSv1.1,TLSv1.2"
  5. ciphers="TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA,... [Sortened cipher list fro readability]" />
  6.  
  7. <!--
  8.  
  9. <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
  10. maxThreads="150" scheme="https" secure="true"
  11. keystoreFile="/opt/cloudhost/tomcat6/security/keystore.jks" keystorePass="changeit"
  12. clientAuth="false" sslProtocols="TLSv1,TLSv1.1,TLSv1.2"
  13. ciphers="TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA,... [Sortened cipher list fro readability]" />
  14.  
  15. lineNumber=$(grep -n <somevalue> filename|awk '{ print $1 }')
  16.  
  17. tail -n $lineNumber server.xml| grep -n '<!--'
  18.  
  19. sed '25,$!d' server.xml |grep -n '<!--'
  20.  
  21. awk 'NR>24 && /<!--/ {print; exit}' file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement