Generate XDS.INP: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
Line 12: Line 12:


<pre>
<pre>
#!/bin/bash
#!/bin/bash
# purpose: generate XDS.INP
# purpose: generate XDS.INP
Line 1,319: Line 1,320:
  wget http://wiki.uni-konstanz.de/xds/index.php/generate_XDS.INP -O - | \
  wget http://wiki.uni-konstanz.de/xds/index.php/generate_XDS.INP -O - | \
   sed -e s/\&nbsp\;/\ /g -e s/\&gt\;/\>/g -e s/\&lt\;/\</g -e s/amp\;//g -e s/\&quot\;/\"/g -e s/\&\#\1\6\0\;/\ /g | \
   sed -e s/\&nbsp\;/\ /g -e s/\&gt\;/\>/g -e s/\&lt\;/\</g -e s/amp\;//g -e s/\&quot\;/\"/g -e s/\&\#\1\6\0\;/\ /g | \
   sed -ne '/\#\!\/bin\/bash/,/# end of generate_XDS.INP/p' > generate_XDS.INP
   sed '/# end of generate_XDS.INP/,$d' | sed -n '/#!\/bin\/bash/,/# end of generate_XDS.INP/p' > generate_XDS.INP
  chmod +x generate_XDS.INP
  chmod +x generate_XDS.INP
</pre>
</pre>
Line 1,326: Line 1,327:
  curl -L -o - http://wiki.uni-konstanz.de/xds/index.php/generate_XDS.INP | \
  curl -L -o - http://wiki.uni-konstanz.de/xds/index.php/generate_XDS.INP | \
   sed -e s/\&nbsp\;/\ /g -e s/\&gt\;/\>/g -e s/\&lt\;/\</g -e s/amp\;//g -e s/\&quot\;/\"/g -e s/\&\#\1\6\0\;/\ /g | \
   sed -e s/\&nbsp\;/\ /g -e s/\&gt\;/\>/g -e s/\&lt\;/\</g -e s/amp\;//g -e s/\&quot\;/\"/g -e s/\&\#\1\6\0\;/\ /g | \
   sed -ne '/\#\!\/bin\/bash/,/# end of generate_XDS.INP/p' > generate_XDS.INP
   sed '/# end of generate_XDS.INP/,$d' | sed -n '/#!\/bin\/bash/,/# end of generate_XDS.INP/p' > generate_XDS.INP
  chmod +x generate_XDS.INP
  chmod +x generate_XDS.INP
</pre>
</pre>
2,684

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu