几个Shell Script面试题
1. How do you take a single line of input from the user in a shell script?
2. Write a script to convert all DOS style backslashes to UNIX style slashes in a list of files.
3. Write a regular expression (or sed script) to replace alloccurrences of the letter ‘f’, followed by any number of characters, followed by the letter ‘a’, followed by one or more numeric characters,followed by the letter ‘n’, and replace what’s found with the string“UNIX”.
4. What happens to a child process that dies and has no parent process to wait for it and what’s bad about this?
5. How do you create a swapfile?1. How do you take a single line of input from the user in a shell script?
2. Write a script to convert all DOS style backslashes to UNIX style slashes in a list of files.
3. Write a regular expression (or sed script) to replace all occurrences of the letter ‘f’, followed by any number of characters,followed by the letter ‘a’, followed by one or more numeric characters,followed by the letter ‘n’, and replace what’s found with the string “UNIX”.
4. What happens to a child process that dies and has no parent process to wait for it and what’s bad about this?
5. How do you create a swapfile?
2. Write a script to convert all DOS style backslashes to UNIX style slashes in a list of files.
3. Write a regular expression (or sed script) to replace alloccurrences of the letter ‘f’, followed by any number of characters, followed by the letter ‘a’, followed by one or more numeric characters,followed by the letter ‘n’, and replace what’s found with the string“UNIX”.
4. What happens to a child process that dies and has no parent process to wait for it and what’s bad about this?
5. How do you create a swapfile?1. How do you take a single line of input from the user in a shell script?
2. Write a script to convert all DOS style backslashes to UNIX style slashes in a list of files.
3. Write a regular expression (or sed script) to replace all occurrences of the letter ‘f’, followed by any number of characters,followed by the letter ‘a’, followed by one or more numeric characters,followed by the letter ‘n’, and replace what’s found with the string “UNIX”.
4. What happens to a child process that dies and has no parent process to wait for it and what’s bad about this?
5. How do you create a swapfile?
【几个Shell Script面试题】相关文章
1. ShellScript面试题一则-ShellScript编程
3. shell程序如何生命变量?shell变量是弱变量吗?
4. Oracle面试题:如何把一个表从一个schema到另一个schema
5. 软件测试LoadRunner面试题:What is a function to capture dynamic values in the web vuser script?
7. 软件测试LoadRunner面试题:If you want to stop the execution of your script on error, how do you do that?
8. Shell编程面试题
9. .NET初级开发工程师面试题(包括Javascript)
10. 百度JavaScript笔试题
本文来源:https://www.mianshiwenti.com/a13578.html
进入下载页面
上一篇:Linux文件系统类型
下一篇:如何利用cmp命令比较文件
﹝几个Shell Script面试题﹞相关内容
- Shell如何接收变量输入
- shell程序中如何注释
- 如何在Shell脚本中使用函数
- Shell脚本如何向终端输出信息
- shell变量的作用空间是什么
- shell的种类有哪些
- 什么是Deployment descriptors;都有什么类型的部署描述符
- Javascript如何发送一个Ajax请求
- Ajax和javascript的区别
- 软件测试LoadRunner面试题:How did you plan the Load? What are the Criteria?