Linux 几个Shell Script面试题

几个Shell Script面试题 <br /> Linux <br /> <br /> 1. How do you take a single line of input from the user in a shell<br /> script?<br /> 2. Write a script to convert all DOS style backslashes to UNIX style<br /> slashes in a list of files.<br /> 3. Write a regular expression (or sed script) to replace all<br /> occurrences of the letter ‘f’, followed by any number of characters,<br /> followed by the letter ‘a’, followed by one or more numeric characters,<br /> followed by the letter ‘n’, and replace what’s found with the string<br /> “UNIX”.<br /> 4. What happens to a child process that dies and has no parent process<br /> to wait for it and what’s bad about this?<br /> 5. How do you create a swapfile?1. How do you take a single line of input from the user in a shell<br /> script?<br /> 2. Write a script to convert all DOS style backslashes to UNIX style<br /> slashes in a list of files.<br /> 3. Write a regular expression (or sed script) to replace all<br /> occurrences of the letter ‘f’, followed by any number of characters,<br /> followed by the letter ‘a’, followed by one or more numeric characters,<br /> followed by the letter ‘n’, and replace what’s found with the string<br /> “UNIX”.<br /> 4. What happens to a child process that dies and has no parent process<br /> to wait for it and what’s bad about this?<br /> 5. How do you create a swapfile?<br />
RangeTime:0.009449s
RangeMem:205.09 KB
返回顶部 留言