小红花·文摘
首页
广场
排行榜
🏆
直播
FAQ
首页
详情
WangMao's Blog
·
2023-11-14T03:32:00Z
zsh 下 <<< 操作符引起的问题
💡
原文中文,约200字,阅读约需1分钟。
📝
内容提要
在编写shell脚本生成字符串的md5哈希时,可以使用<<<操作符来简化原本通过管道传递字符串到md5命令的语法,直接将字符串重定向到md5以简化过程。
🎯
关键要点
在编写shell脚本时,可以使用md5生成字符串的哈希。
使用<<<操作符可以简化通过管道传递字符串到md5命令的语法。
原写法是通过echo命令和管道传递字符串。
使用<<<操作符可以直接将字符串重定向到md5命令。
🏷️
标签
<<<操作符
md5哈希
shell脚本
zsh
管道
重定向
阅读原文
生成长图
分享链接
已复制链接
➡️
继续阅读
微软表示卸载KB5074109可以临时解决Outlook经典版冻结或卡顿问题
微软建议用户卸载 KB5074109 更新,以解决 Outlook 经典版冻结问题,或使用网页版邮箱。该更新影响已发送邮件的显示,目前尚无简单解决方案,用...
Marshall’s new hub connects to multiple Bluetooth speakers without pairing
Marshall has announced a new music streaming hub called the Heddon that can b...
Today only, you can buy the AirPods Pro 3 for less than $200
If you’re considering gifting the AirPods Pro 3 for Valentine’s Day, now’s a ...
Giving your healthcare info to a chatbot is, unsurprisingly, a terrible idea
Every week, more than 230 million people ask ChatGPT for health and wellness ...
更多的安全工具正在拖慢您的事件响应速度
Time plays a crucial role in an organization’s defense posture, including the...
VoidZero发布Oxfmt Alpha版,具备Rust驱动的性能和Prettier兼容性
VoidZero has unveiled Oxfmt, a cutting-edge Rust-based code formatter that of...
👤 个人中心
在公众号发送验证码完成验证
去登录
登录验证
在本设备完成一次验证即可继续使用
×
完成下面两步后,将自动完成登录并继续当前操作。
1
关注公众号
小红花技术领袖
如果当前 App 无法识别二维码,请在
微信
搜索并关注该公众号
2
发送验证码
在公众号对话中发送下面 4 位验证码