几个Shell Script面试题


Posted in 面试题 onAugust 31, 2012
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?

Tags in this post...

面试题 相关文章推荐
方法名是否可以与构造器的名字相同
Jun 04 面试题
Java面试中常遇到的问题,也是需要注意的几点
Aug 30 面试题
C语言笔试题回忆
Apr 02 面试题
一套带答案的C++笔试题
Jan 10 面试题
浙大网新C/C++面试解惑
May 27 面试题
华为慧通面试题
Sep 11 面试题
STP协议的主要用途是什么?为什么要用STP
Dec 20 面试题
C# .NET面试题
Nov 28 面试题
英智兴达软件测试笔试题
Oct 12 面试题
Boolean b = new Boolean(“abcde”); 会编译错误码
Nov 27 面试题
Java中采用什么结构来捕获、处理异常?各子句的顺序、功能如何
Oct 07 面试题
Servlet方面面试题
Sep 28 面试题
介绍一下write命令
Sep 24 #面试题
Linux操作面试题
May 16 #面试题
几个Linux面试题笔试题
Dec 01 #面试题
LINUX下线程,GDI类的解释
Dec 14 #面试题
什么是用户模式(User Mode)与内核模式(Kernel Mode) ?
Sep 07 #面试题
下列程序在32位linux或unix中的结果是什么
Mar 25 #面试题
一些Solaris面试题
Dec 22 #面试题
You might like
用PHP制作静态网站的模板框架(二)
2006/10/09 PHP
PHP 日期加减的类,很不错
2009/10/10 PHP
php文本转图片自动换行的方法
2013/03/13 PHP
PHP页面间参数传递的四种方法详解
2013/06/09 PHP
PHP内置的Math函数效率测试
2014/12/01 PHP
PHP实现伪静态方法汇总
2016/01/13 PHP
php使用函数pathinfo()、parse_url()和basename()解析URL
2016/11/25 PHP
PHP7实现和CryptoJS的AES加密方式互通示例【AES-128-ECB加密】
2019/06/08 PHP
php源码的安装方法和实例
2019/09/26 PHP
TopList标签和JavaScript结合两例
2007/08/12 Javascript
使用jQuery解决IE与FireFox下createElement方法的差异
2013/11/14 Javascript
Jquery利用mouseenter和mouseleave实现鼠标经过弹出层且可以点击
2014/02/12 Javascript
jQuery UI Bootstrap是什么?
2016/06/17 Javascript
详解AngularJS如何实现跨域请求
2016/08/22 Javascript
jQ处理xml文件和xml字符串的方法(详解)
2016/11/22 Javascript
Node.js和Express简单入门介绍
2017/03/24 Javascript
Angular使用动态加载组件方法实现Dialog的示例
2018/05/11 Javascript
小程序rich-text组件如何改变内部img图片样式的方法
2019/05/22 Javascript
微信小程序实现拨打电话功能的示例代码
2020/06/28 Javascript
解决element-ui里的下拉多选框 el-select 时,默认值不可删除问题
2020/08/14 Javascript
Python pass 语句使用示例
2014/03/11 Python
Python 搭建Web站点之Web服务器网关接口
2016/11/06 Python
python中使用zip函数出现错误的原因
2018/09/28 Python
使用python将图片按标签分入不同文件夹的方法
2018/12/08 Python
pyqt5 删除layout中的所有widget方法
2019/06/25 Python
python实现tail实时查看服务器日志示例
2019/12/24 Python
Django与pyecharts结合的实例代码
2020/05/13 Python
python 实现一个简单的线性回归案例
2020/12/17 Python
美国地毯购买网站:Rugs USA
2019/02/23 全球购物
英国在线玫瑰专家:InterRose
2019/12/01 全球购物
几个SQL的面试题
2014/03/08 面试题
团队精神演讲稿
2013/12/31 职场文书
《春到梅花山》教学反思
2014/04/16 职场文书
公司担保书范文
2014/05/21 职场文书
农村婚礼司仪主持词
2015/06/29 职场文书
python基础入门之普通操作与函数(三)
2021/06/13 Python