bash - 执行bash命令后如何减少或隐藏特定的行输出?
问题描述
例如,我使用参数运行命令
# ./nonmyprogram
它会打印出一些有用的信息和秘密
Your ID: 1234
Secret ID: qwerty
Some other: data
我想添加一些输出转换,所以我会得到:
Your ID: 1234
Some other: data
或者
Your ID: 1234
Secret ID: [redacted]
Some other: data
解决方案
推荐阅读
- database - ef 核心回滚中的 savechanges() 异常是否在上下文中更改?
- abap - 我不明白 READ TABLE inside LOOP 是如何工作的
- ios - 取消循环外的 DispatchWorkItem - Swift
- c# - 处理 DispatcherTimer.Tick 方法时出错
- c++ - Ncurses 表单中的字段验证存在问题
- azure - 在 Azure 数据工厂中根据文件名创建文件夹
- python - 在另一个数组的特定列中查找数组的最近元素
- python - Web2py SmartGrid 显示每个用户的数据
- android - 每行弹性盒布局的最大项目数
- reactjs - 状态改变时我的组件没有重新加载有什么解决办法吗