User Tools

Site Tools


bash_cheatsheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
bash_cheatsheet [2019/02/13 16:07]
ginko
bash_cheatsheet [2019/02/13 16:07] (current)
ginko [Output of a shell command]
Line 72: Line 72:
 gz</​code>​ gz</​code>​
 ==== Output of a shell command ==== ==== Output of a shell command ====
-  * ''​$(mycmd params)''​ +  * ''​$(mycmd params)''<​code bash>​mydate=$(date +%Y-%m-%d)
-<code bash>​mydate=$(date +%Y-%m-%d)+
 mytimestamp=$(date '​+%Y-%m-%d %H:​%M:​%S'​)</​code>​ mytimestamp=$(date '​+%Y-%m-%d %H:​%M:​%S'​)</​code>​
 ===== Mastering history ===== ===== Mastering history =====
bash_cheatsheet.txt · Last modified: 2019/02/13 16:07 by ginko