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
Next revision
Previous revision
bash_cheatsheet [2014/12/07 23:16] – [Redirection] ginkobash_cheatsheet [2019/02/13 16:07] (current) – [Output of a shell command] ginko
Line 71: Line 71:
 ~% echo "${FILE##*.}" ~% echo "${FILE##*.}"
 gz</code> gz</code>
 +==== Output of a shell command ====
 +  * ''$(mycmd params)''<code bash>mydate=$(date +%Y-%m-%d)
 +mytimestamp=$(date '+%Y-%m-%d %H:%M:%S')</code>
 ===== Mastering history ===== ===== Mastering history =====
 [[http://www.eriwen.com/bash/effective-shorthand/|Source]] [[http://www.eriwen.com/bash/effective-shorthand/|Source]]
bash_cheatsheet.1417990563.txt.gz · Last modified: 2014/12/07 23:16 by ginko