terminal
echo > result-`date +%Y%m%d_%H%M%S`.log
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 …