Linux/Unix面试题

当前位置: 面试问题网 > Linux/Unix面试题 > ShellScript面试题一则-ShellScript编程

ShellScript面试题一则-ShellScript编程

用Shell Script写一段代码 把一个目录下所有以ks开头的文件夹取出,保存到dirlist.txt文件中,然后遍历文件中的文件夹路径,在每个文件夹目录中执行一句任何命令。
  
   #!/bin/bash
   find /apps/build/jobs/workspace/dev_1.0.0/ -maxdepth 2 -name “ks*” -type d > dirlist.txt
   for DIR in $(< dirlist.txt);
   do
   cd $DIR
   mvn sonar:sonar
   done

【ShellScript面试题一则-ShellScript编程】相关文章

1. ShellScript面试题一则-ShellScript编程

2. 几个Shell Script面试题

3. shell程序如何生命变量?shell变量是弱变量吗?

4. 软件测试LoadRunner面试题:What is a function to capture dynamic values in the web vuser script?

5. Shell编程面试题

6. 软件测试LoadRunner面试题:If you want to stop the execution of your script on error, how do you do that?

7. Oracle面试题:如何把一个表从一个schema到另一个schema

8. .NET初级开发工程师面试题(包括Javascript)

9. 百度JavaScript笔试题

10. 用JAVA SOCKET编程,读服务器几个字符,再写入本地显示

本文来源:https://www.mianshiwenti.com/a13598.html

点击展开全部

《ShellScript面试题一则-ShellScript编程》

将本文的Word文档下载到电脑,方便收藏和打印

推荐程度:

进入下载页面

﹝ShellScript面试题一则-ShellScript编程﹞相关内容

「ShellScript面试题一则-ShellScript编程」相关专题

其它栏目

也许您还喜欢