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 revisionPrevious revision
bash_cheatsheet [2019/02/13 16:07] ginkobash_cheatsheet [2019/02/13 16:07] (current) – [Output of a shell command] ginko
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.1550070438.txt.gz · Last modified: 2019/02/13 16:07 by ginko