会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
哥们要飞的blog
Nice to meet you!
博客园
首页
新随笔
联系
订阅
管理
2022年4月27日
【Shell案例】【打印指定行用sed、for循环、head和tail配合使用】4、输出第5行的内容
摘要: 描述写一个 bash脚本以输出一个文本文件 nowcoder.txt 中第5行的内容。 示例:假设 nowcoder.txt 内容如下:welcometonowcoderthisisshellcode 你的脚本应当输出:is 方法1:变量定义+for循环 #!/bin/bash let j=0 fo
阅读全文
posted @ 2022-04-27 19:49 哥们要飞
阅读(184)
评论(0)
推荐(0)
公告