echoと同じ機能を実行する外部コマンドを探しています。

echoと同じ機能を実行する外部コマンドを探しています。

echobashに組み込まれています。同じ操作を実行できる外部コマンドはありますかecho? (もっとできます)

ベストアンサー1

持っているecho

$ /bin/echo --version
echo (GNU coreutils) 8.25
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Brian Fox and Chet Ramey.

シェルの状態を変更しないシェル組み込みコマンドは、外部コマンドとしても実装されることがよくあります。[/testはよく知られているコマンドなので、次のようになりますprintf

$ /bin/printf --version
printf (GNU coreutils) 8.25
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David MacKenzie.

可能であれば、busybox以下をサポートすることもできますecho

$ busybox echo --version
--version

おすすめ記事