うたたね

メモ中心。

terminal

ファイル名に日時を指定する

echo > result-`date +%Y%m%d_%H%M%S`.log

builtin command 調べ中2

type command たたいてみる。 shell は zsh。 type which which is a shell builtin type -a which which is a shell builtin which is /usr/bin/which

シングルコマンドを複数行で記述する

困ったこと echo $PATH | sed 's/:/ /g' 実行。エラー。 sed: 1: "s/:/ /g": unescaped newline inside substitute pattern 最終的に echo $PATH | sed 's/:/\ /g' バックスラッシュでコマンドをつないだ。 Linux Bash Script, Single Command But Multiple …