几个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...

面试题 相关文章推荐
RealTek面试题
Jun 28 面试题
定义一结构体变量,用其表示点坐标,并输入两点坐标,求两点之间的距离
Aug 17 面试题
实现向右循环移位
Jul 31 面试题
如果NULL和0作为空指针常数是等价的,那我到底该用哪一个
Sep 16 面试题
.NET remoting的两种通道是什么
May 31 面试题
TCP/IP模型的分界线
Dec 01 面试题
傲盾软件面试题
Aug 17 面试题
extern是什么意思
Mar 10 面试题
介绍一下Linux文件的记录形式
Apr 18 面试题
软件测试笔试题
Oct 25 面试题
你们项目是如何进行变更控制的
Aug 26 面试题
Java基础面试题
Jul 19 面试题
介绍一下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中OR与|| AND与&&的区别总结
2013/10/26 PHP
YII2 实现多语言配置的方法分享
2017/01/11 PHP
php 查找数组元素提高效率的方法详解
2017/05/05 PHP
理清PHP在Linxu下执行时的文件权限方法
2017/06/07 PHP
php检查函数必传参数是否存在的实例详解
2017/08/28 PHP
在Laravel中使用GuzzleHttp调用第三方服务的API接口代码
2019/10/15 PHP
PHP实现创建一个RPC服务操作示例
2020/02/23 PHP
JavaScript 继承详解(二)
2009/07/13 Javascript
关于Ext中form移除textfield方法:hide(),setVisible(false),remove()
2010/12/02 Javascript
jquery解析XML字符串和XML文件的方法说明
2014/02/21 Javascript
jQuery 选择器详解
2015/01/19 Javascript
jQuery获得子元素个数的方法
2015/04/14 Javascript
js不间断滚动的简单实现
2016/06/03 Javascript
微信小程序template模板实例详解
2017/10/27 Javascript
js闭包学习心得总结
2018/04/17 Javascript
详解关于Vue2.0路由开启keep-alive时需要注意的地方
2018/09/18 Javascript
node(koa2) web应用模块介绍详解
2019/03/29 Javascript
全面了解JavaScript的作用域链
2019/04/03 Javascript
ECharts地图绘制和钻取简易接口详解
2019/07/12 Javascript
Python解析最简单的验证码
2016/01/07 Python
python使用psutil模块获取系统状态
2016/08/27 Python
使用 Python 实现微信群友统计器的思路详解
2018/09/26 Python
tensorflow -gpu安装方法(不用自己装cuda,cdnn)
2020/01/20 Python
TensorFlow 多元函数的极值实例
2020/02/10 Python
pycharm 2020 1.1的安装流程
2020/09/29 Python
简历中求职的个人自我评价
2013/12/03 职场文书
电子商务专业个人的自我评价
2013/12/19 职场文书
信息总监管理职责范本
2014/03/08 职场文书
表彰大会主持词
2014/03/26 职场文书
2014年银行员工年终自我评价
2014/09/19 职场文书
出生证明格式
2015/06/15 职场文书
高三数学教学反思
2016/02/18 职场文书
2019教师的学习计划
2019/06/25 职场文书
Jackson 反序列化时实现大小写不敏感设置
2021/06/29 Java/Android
Nginx反向代理至go-fastdfs案例讲解
2021/08/02 Servers
vue代码分块和懒加载非必要资源文件
2022/04/11 Vue.js