script Beispiele ergänzt
This commit is contained in:
parent
6f9a8f4076
commit
ea67258714
9
beispiele/archive-dir.sh
Normal file
9
beispiele/archive-dir.sh
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo usage: $0 directory
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
SRCD=$1
|
||||||
|
TGTD="/home/$USER/backups/"
|
||||||
|
OF=home-$(date +%Y%m%d).tgz
|
||||||
|
tar -czf $TGTD$OF $SRCD
|
7
beispiele/recursive-grep-in-file.sh
Normal file
7
beispiele/recursive-grep-in-file.sh
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -n $2 ]
|
||||||
|
grep -r --include="*.$2" "$1" .
|
||||||
|
else
|
||||||
|
grep -r "$1" .
|
||||||
|
fi
|
@ -22,8 +22,9 @@
|
|||||||
<li><a href="4.html">4. Abend</a></li>
|
<li><a href="4.html">4. Abend</a></li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<p>Quellen hier: <a href="https://git.scytec.de/danthefan/linuxkurs" target="_blank">GitLab</a></p>
|
<p>Git Repository:<a href="https://git.scytec.de/danthefan/linuxkurs" target="_blank">GitLab</a></p>
|
||||||
<p>Skripte <a href="https://git.scytec.de/danthefan/linuxkurs/tree/master/beispiele" target="_blank">Skripte Hier</a>
|
<p>Skripte: <a href="https://git.scytec.de/danthefan/linuxkurs/tree/master/beispiele" target="_blank">Skripte Hier</a>
|
||||||
|
<p>Übungs Bilder: <a href="https://www.schubertdaniel.de/linuxkurs/bilder.zip" target="_blank">bilder.zip</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="ui segment">
|
<div class="ui segment">
|
||||||
<h2><i class="icon file pdf outline"></i>PDF</h2>
|
<h2><i class="icon file pdf outline"></i>PDF</h2>
|
||||||
|
Loading…
Reference in New Issue
Block a user