Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linuxcommandline
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bio-IT Workshops
linuxcommandline
Commits
c6cb4f52
Commit
c6cb4f52
authored
9 years ago
by
Holger Dinkel
Browse files
Options
Downloads
Patches
Plain Diff
BUGFIX intermediate
parent
796d1a0b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
linux_intermediate/_build/latex/IntermediateLinuxCourse.pdf
+0
-0
0 additions, 0 deletions
linux_intermediate/_build/latex/IntermediateLinuxCourse.pdf
linux_intermediate/basic_scripting.rst
+10
-9
10 additions, 9 deletions
linux_intermediate/basic_scripting.rst
with
10 additions
and
9 deletions
linux_intermediate/_build/latex/IntermediateLinuxCourse.pdf
+
0
−
0
View file @
c6cb4f52
No preview for this file type
This diff is collapsed.
Click to expand it.
linux_intermediate/basic_scripting.rst
+
10
−
9
View file @
c6cb4f52
...
@@ -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
----------------
----------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment