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
ad58433f
Commit
ad58433f
authored
10 years ago
by
Holger Dinkel
Browse files
Options
Downloads
Patches
Plain Diff
MINOR: add more indices
parent
abd618ec
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
linux_intermediate/basic_scripting.rst
+2
-2
2 additions, 2 deletions
linux_intermediate/basic_scripting.rst
linux_intermediate/commandlinetools.rst
+5
-4
5 additions, 4 deletions
linux_intermediate/commandlinetools.rst
with
7 additions
and
6 deletions
linux_intermediate/basic_scripting.rst
+
2
−
2
View file @
ad58433f
...
...
@@ -293,8 +293,8 @@ A) Evaluating the exit status of a command: Simply use the command as condition.
B) Evaluating of conditions or comparisons:
Conditions and comparisons are evaluated using a special :index:`command <test>` ``test`` which is
usually written :index:`as<[>` "``[``" (no joke!). As "``[``" is a command, it must be followed by
a blank. As a speciality the "``[``" command must be ended with "``
]``" (note the
usually written :index:`as
<[>` "``[``" (no joke!). As "``[``" is a command, it must be followed by
a blank. As a speciality the "``[``" command must be
:index:`
ended
<]>`
with "``]``" (note the
preceding blank here)
.. Note:: In csh/tcsh the ``test`` (or ``[``) command is not needed. Conditions and comparisons are directly placed within the round braces.
...
...
This diff is collapsed.
Click to expand it.
linux_intermediate/commandlinetools.rst
+
5
−
4
View file @
ad58433f
...
...
@@ -5,7 +5,7 @@ More Commandline Tools
Here is a quick list of useful commandline tools which will be used throughout the rest of the document.
Many of these tools have quite extensive functionality and only a very limited part can be discussed here,
so the reader is encouraged to read more about these using the links given in the in the :
ref
:`
L
inks <
L
inks>`
so the reader is encouraged to read more about these using the links given in the in the :
doc
:`
l
inks <
l
inks>`
section...
Commandline Tools
...
...
@@ -17,7 +17,8 @@ GZIP
----
:index:`gzip <gzip>` is a compression/decompression tool.
When used on a file (without any parameters) it will compress it and replace the
file by a compressed version with the extension '.gz' attached:
:index:`file <ls>` by a compressed version with the extension '.gz' attached:
::
...
...
@@ -565,7 +566,7 @@ Quoting
In Programming it is often necessary to "glue together" certain words. Usually, a program or
the shell splits sentences by whitespace (space or tabulators) and treats each word
individually. In order to tell the computer that certain words belong together, you need to
"
quote
" them, using either single (') or double (") quotes. The difference between these two is
"
:index:`quote <quoting>`
" them, using either single (') or double (") quotes. The difference between these two is
generally that within double quotes, variables will be expanded, while everything within
single quotes is treated as string literal.
When setting a variable, it doesn't matter which quotes you use:
...
...
@@ -626,7 +627,7 @@ You already learned how to expand a variable such that its value is used instead
# echo "the variable is $MYVAR"
the variable is 123
"
Escaping
" a variable is the opposite, ensuring that the literal variable name is used instead of its value:
"
:index:`Escaping <escape>`
" a variable is the opposite, ensuring that the literal variable name is used instead of its value:
::
...
...
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