IT面试笔试题全集_Linux篇_Rain系列.doc
- aena45个人认证 |
- 2021-09-22 发布|
- 341.5 KB|
- 169页
IT面试笔试题全集_史上最全_Linux篇_Rain系列
几个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 all
occurrences of the letter
#8216;f
#8217;, followed by any number of characters,
followed by the letter
#8216;a
#8217;, followed by one or more numeric characters,
followed by the letter
#8216;n
#8217;, and replace what
#8217;s found with the sing
#8220;UNIX
.
4. What happens to a child process that dies and has no parent process
to wait for it and what
#8217;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