小编tdh*_*son的帖子

tr a < /etc/hosts | sort -r |pr -d > /etc/hosts

在这一行:

tr a A < /etc/hosts | sort -r |pr -d > /etc/hosts 
Run Code Online (Sandbox Code Playgroud)

预期的结果是什么?我知道小写的 'a' 会变成大写的 'A' 但接下来是什么?由于重定向到相同的文件名,原始文件会被覆盖吗?

shell io-redirection tr

9
推荐指数
1
解决办法
1206
查看次数

标签 统计

io-redirection ×1

shell ×1

tr ×1