安全问答

安全问答是一个知识全球问答,包含丰富的问答知识

首页 常规 游戏 娱乐 科技 程序员

今天晚上 用shell命令在每个字前面加$把一个字符串存到变量中然后使用sed命令在每个字前面加上$符号:str=hello worldecho $str sed sb$g输出:$hello $world继续

  • 日期: 2028-08-13
  • 标签: 社会

使用awk命令在每个字前面加上$符号:echo $str | awk '{for(i=1;i<=NF;i++) printf("$%s ",$i)}'输出:$hello $world

今天晚上 用shell命令在每个字前面加$把一个字符串存到变量中然后使用sed命令在每个字前面加上$符号:str=hello worldecho $str sed sb$g输出:$hello $world继续

原文地址: https://www.cveoy.top/t/topic/csmt 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录

  • 上一篇: 编写通达信威廉指标
  • 下一篇: ChatGPTAs an AI language model I dont have the ability to initiate a chat However I can answer any questions or respond to any messages you have for me How may I assist you「首先就自杀而言就是错误的是自私的每个人来这个世界是独立

© 2019 • 2025 - 安全问答 站长邮箱:wxgpt@qq.com    ICP备案/许可证号:豫ICP备2024104334号-2