2,719
edits
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
~/generate_XDS.INP "frms/mydata_1_???.img" | ~/generate_XDS.INP "frms/mydata_1_???.img" | ||
By using your own file, you can easily update to the latest revision, or even change the script, without having to bother the system administrator. | By using your own file, you can easily update to the latest revision, or even change the script, without having to bother the system administrator. | ||
Instead of cut-and-paste, you could try | |||
wget http://strucbio.biologie.uni-konstanz.de/xdswiki/index.php/generate_XDS.INP -O - | awk '/bash/,/rm -f tmp1 tmp2/' | \ | |||
sed -e s/\ \;/\ /g -e s/\>\;/\>/g -e s/\<\;/\</g -e s/amp\;//g -e s/\"\;/\"/g > generate_XDS.INP | |||
to obtain generate_XDS.INP in your current directory. | |||
This is the script: | This is the script: | ||
Line 82: | Line 87: | ||
# and set a link if necessary | # and set a link if necessary | ||
if [ ${#1} -gt 72 ]; then | if [ ${#1} -gt 72 ]; then | ||
TMP_PATH=$(/bin/ls -C1 $1 $1.bz2 | head -1) | TMP_PATH=$(/bin/ls -C1 $1 $1.bz2 2>/dev/null | head -1) | ||
TMP_FILENAME=$(basename ${TMP_PATH}) | TMP_FILENAME=$(basename ${TMP_PATH}) | ||
if [ ${#TMP_FILENAME} -gt 65 ]; then | if [ ${#TMP_FILENAME} -gt 65 ]; then |