Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rafal Bogdanowicz
linuxcommandline
Commits
18cebe54
Commit
18cebe54
authored
Jan 24, 2017
by
gouw
Browse files
Small typos and fixes section 1.
parent
257c6a2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
linux_intermediate/commandlinetools.rst
View file @
18cebe54
...
...
@@ -67,10 +67,10 @@ The most common commandline switches are:
Option: Effect:
======= ===================================
``-c`` create an archive
``-t``
test
an archive
``-t``
list contents of
an archive
``-x`` extract an archive
``-z`` use gzip compression
``-f`` filename
filename
of the archive
``-f`` filename of the archive
======= ===================================
.. note:: Don't forget to specify the target filename.
...
...
@@ -211,7 +211,7 @@ of values into a single column:
::
# echo "sample1 sample2 sample3 sample4 sample5" | fmt
1
# echo "sample1 sample2 sample3 sample4 sample5" | fmt
-w 7
sample1
sample2
sample3
...
...
@@ -293,7 +293,7 @@ before executing commands.
::
# find / -size +5G
B
| xargs -p rm
# find / -size +5G | xargs -p rm
rm /home/toby/alignments/giant_alignment.bam? y
This is a good way of sweeping your filesystem to find the largest files and then choosing
...
...
@@ -705,7 +705,7 @@ current shell are available.
Examples
^^^^^^^^
Consider the following small shellscript
`
`vartest.sh`::
Consider the following small shellscript `vartest.sh`::
#!/bin/sh
echo $MYLOCALVAR
...
...
@@ -718,8 +718,8 @@ a) Set the variables and run the script i.e. in a new shell:
::
$ export MYGLOBALVAR=
”
I am global
”
$ MYLOCALVAR=
”
I am loca
l”
$ export MYGLOBALVAR=
"
I am global
"
$ MYLOCALVAR=
"
I am loca
"
$ ./vartest.sh
I am global
-----
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment