几个Shell Script面试题


Posted in 面试题 onApril 18, 2014
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...

面试题 相关文章推荐
怎样比较两个类型为String的字符串
Aug 17 面试题
如何将整数int转换成字串String
Mar 21 面试题
如何在Cookie里面保存Unicode和国际化字符
May 25 面试题
在C语言中实现抽象数据类型什么方法最好
Jun 26 面试题
编写类String的构造函数、析构函数和赋值函数
May 29 面试题
c++工程师面试问题
Aug 04 面试题
西安启天科技有限公司网络工程师面试题笔试题
Jun 12 面试题
介绍一下grep命令的使用
Jun 12 面试题
DTD的含义以及作用
Jan 26 面试题
Java如何获得ResultSet的总行数
Sep 03 面试题
shell程序如何生命变量?shell变量是弱变量吗?
Nov 10 面试题
Unix如何添加新的用户
Aug 20 面试题
介绍一下write命令
Aug 10 #面试题
Linux操作面试题
Feb 11 #面试题
几个Linux面试题笔试题
Aug 01 #面试题
LINUX下线程,GDI类的解释
Apr 17 #面试题
什么是用户模式(User Mode)与内核模式(Kernel Mode) ?
Jul 21 #面试题
下列程序在32位linux或unix中的结果是什么
Jan 26 #面试题
一些Solaris面试题
Mar 22 #面试题
You might like
php中用文本文件做数据库的实现方法
2008/03/27 PHP
PHP闭包实例解析
2014/09/08 PHP
thinkPHP下的widget扩展用法实例分析
2015/12/26 PHP
浅析offsetLeft,Left,clientLeft之间的区别
2013/11/30 Javascript
点击按钮自动加关注的代码(sina微博/QQ空间/人人网/腾讯微博)
2014/01/02 Javascript
javascript计算用户打开网页的停留时间
2014/01/09 Javascript
jquery序列化form表单使用ajax提交后处理返回的json数据
2014/03/03 Javascript
node.js中的emitter.emit方法使用说明
2014/12/10 Javascript
Jquery中offset()和position()的区别分析
2015/02/05 Javascript
jquery中change()用法实例分析
2015/02/06 Javascript
JavaScript中定义函数的三种方法
2015/03/12 Javascript
javascript验证邮件地址和MX记录的方法
2015/06/16 Javascript
JS检测移动端横竖屏的代码
2016/05/30 Javascript
AngularJS实现一次监听多个值发生的变化
2016/08/31 Javascript
浅谈jQuery this和$(this)的区别及获取$(this)子元素对象的方法
2016/11/29 Javascript
微信小程序 自动登陆PHP源码实例(源码下载)
2017/05/08 Javascript
vue页面离开后执行函数的实例
2018/03/13 Javascript
Angular网络请求的封装方法
2018/05/22 Javascript
JavaScript原型对象原理与应用分析
2018/12/27 Javascript
微信小程序实现多个按钮的颜色状态转换
2019/02/15 Javascript
三步搞定:Vue.js调用Android原生操作
2020/09/07 Javascript
JavaScript中常用的3种弹出提示框(alert、confirm、prompt)
2020/11/10 Javascript
python判断数字是否是超级素数幂
2018/09/27 Python
在python中利用GDAL对tif文件进行读写的方法
2018/11/29 Python
使用Python和Prometheus跟踪天气的使用方法
2019/05/06 Python
Python基础之函数基本用法与进阶详解
2020/01/02 Python
PyInstaller运行原理及常用操作详解
2020/06/13 Python
解决Keras TensorFlow 混编中 trainable=False设置无效问题
2020/06/28 Python
用于ETL的Python数据转换工具详解
2020/07/21 Python
英国玛莎百货美国官网:Marks & Spencer美国
2018/11/06 全球购物
2014党员干部四风问题对照检查材料思想汇报
2014/09/24 职场文书
2014大四本科生自我鉴定总结
2014/10/04 职场文书
西柏坡观后感
2015/06/08 职场文书
python 提取html文本的方法
2021/05/20 Python
Python中request的基本使用解决乱码问题
2022/04/12 Python
Win10服务全部禁用了怎么启动?Win10服务全部禁用解决方法
2022/09/23 数码科技