Skip to content
Snippets Groups Projects
Commit c6cb4f52 authored by Holger Dinkel's avatar Holger Dinkel
Browse files

BUGFIX intermediate

parent 796d1a0b
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -202,11 +202,12 @@ You can mix multiple ``&&`` and ``||`` controls into a single line. ...@@ -202,11 +202,12 @@ You can mix multiple ``&&`` and ``||`` controls into a single line.
/home/fthommen/a /home/fthommen/a
$ $
Example: Count the heterogens described in a gzipped PDB file or, if it doesn't exist, .. not working:
download the file:: .. Example: Count the heterogens described in a gzipped PDB file or, if it doesn't exist,
.. download the file::
$ gzip -c 4ZZN.pdb.gz && sed -n '/^HET /p' || wget "http://www.rcsb.org/pdb/files/4ZZN.pdb.gz" ..
$ .. $ { gunzip -c 4ZZN.pdb.gz | sed -n '/^HET /p' } || wget "http://www.rcsb.org/pdb/files/4ZZN.pdb.gz"
.. $
*( cmds )* -- *( cmds )* --
Group commands to create one single output stream: The commands are run in a subshell (i.e. a new shell is opened to run them): Group commands to create one single output stream: The commands are run in a subshell (i.e. a new shell is opened to run them):
...@@ -366,7 +367,7 @@ B) Evaluating of conditions or comparisons: ...@@ -366,7 +367,7 @@ B) Evaluating of conditions or comparisons:
Examples: Test for the existence of /etc/passwd:: Examples: Test for the existence of the directory `sequence_files`::
if [ -e ./sequence_files ] if [ -e ./sequence_files ]
then then
...@@ -639,7 +640,7 @@ $@: ...@@ -639,7 +640,7 @@ $@:
.. image:: _static/arguments.png .. image:: _static/arguments.png
If you run the script :: If you run the following script ::
#!/bin/sh #!/bin/sh
echo The script is $0 echo The script is $0
...@@ -785,9 +786,9 @@ becomes: :: ...@@ -785,9 +786,9 @@ becomes: ::
-q clngnew \ -q clngnew \
-M 150000 \ -M 150000 \
-R "select[(mem > 15000)]" \ -R "select[(mem > 15000)]" \
/g/software/bin/pymol-1.4 -r -p < pymol.pml /g/software/bin/pymol -c -r pymol.pml
Which is way better to read and to maintain Which is way better to read and to maintain...
Script Debugging Script Debugging
---------------- ----------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment