我使用Ubuntu 18.04,最近我一直在运行bash脚本时收到此错误:tr: command not found。在tr不存在/usr/bin和/usr/sbin。也安装了,coreutils但仍然没有运气。如何将此命令添加到我的 shell?
which tr什么都不返回。这就是 apt 所说的coreutils:
coreutils is already the newest version (8.28-1ubuntu1).
Run Code Online (Sandbox Code Playgroud)
我明白了Command 'tr' not found,没有什么可以超越它。/usr/bin在我的PATH变量中。