![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
总结常用 shell command
Hi Man
这个作者很懒,什么都没留下…
展开
-
Shell 之 无法进入某一目录解决 No such file or directory.
Shell 之 无法进入某一目录解决问题:shell 脚本中通过读取 文件中的路径,进入到某一目录,但是提示:path: No such file or directory.while read linedo cd xxx/path/${line}done < path分析:很有可能是 path文件格式是doc(即在windows 下编辑过)可以通过vim指令: set ff 查看dos–》为 windows 下创建修改unix --》为 linux 下创建修改两者的不同原创 2021-04-16 09:23:40 · 807 阅读 · 0 评论 -
Shell之使用 cut 提取 文件中特定内容
Shell之使用 cut 提取 文件中特定内容!# /bin/bashwhile read linedo echo $line | cut -d '"' -f 4done < file name读取文件的每一行,用 双引号分割每一行,取第四段。原创 2021-04-16 09:14:56 · 1322 阅读 · 0 评论 -
Shell 之读取文件
程序:#!/bin/bashwhile read linedo $linedone < filename原创 2021-04-06 16:09:30 · 154 阅读 · 0 评论