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

面试题 相关文章推荐
JSF面试题:Jsf中导航的标签是什么
Apr 20 面试题
广州御银科技股份有限公司试卷(C++)
Nov 04 面试题
说一下mysql, oracle等常见数据库的分页实现方案
Sep 29 面试题
商得四方公司面试题(gid+)
Apr 30 面试题
新大陆软件面试题
Nov 24 面试题
以思科路由器为例你写下单臂路由的配置命令
Aug 03 面试题
C#面试题问题集
Apr 02 面试题
如何进行Linux分区优化
Feb 12 面试题
软件测试英文面试题
Oct 14 面试题
XMLHttpRequest对象在IE和Firefox中创建方式有没有不同
Mar 23 面试题
请说出这段代码执行后a和b的值分别是多少
Mar 28 面试题
JAVA招聘远程笔试题
Jul 23 面试题
介绍一下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 图像尺寸调整代码
2010/05/26 PHP
php结合正则获取字符串中数字
2015/06/19 PHP
php通过curl添加cookie伪造登陆抓取数据的方法
2016/04/02 PHP
javascript 中对象的继承〔转贴〕
2007/01/22 Javascript
asp.net下利用js实现返回上一页的实现方法小集
2009/11/24 Javascript
jquery 问答知识整理
2010/02/11 Javascript
jQuery学习笔记 获取jQuery对象
2012/09/19 Javascript
javascript自定义startWith()和endWith()的两种方法
2013/11/11 Javascript
jQuery判断checkbox(复选框)是否被选中以及全选、反选实现代码
2014/02/21 Javascript
jquery自动填充勾选框即把勾选框打上true
2014/03/24 Javascript
BootStrap智能表单实战系列(十一)级联下拉的支持
2016/06/13 Javascript
JavaScript中关于iframe滚动条的去除和保留
2016/11/17 Javascript
sublime text配置node.js调试(图文教程)
2017/11/23 Javascript
angularjs实现柱状图动态加载的示例
2017/12/11 Javascript
深入理解Vue父子组件生命周期执行顺序及钩子函数
2018/08/12 Javascript
iview在vue-cli3如何按需加载的方法
2018/10/31 Javascript
Vue自定义指令结合阿里云OSS优化图片的实现方法
2019/11/12 Javascript
js+css3实现简单时钟特效
2020/09/13 Javascript
[11:01]2014DOTA2西雅图邀请赛 冷冷带你探秘威斯汀
2014/07/08 DOTA
Python模块学习 datetime介绍
2012/08/27 Python
python文件写入实例分析
2015/04/08 Python
Python实现类的创建与使用方法示例
2017/07/25 Python
Python 记录日志的灵活性和可配置性介绍
2018/02/27 Python
python Tkinter版学生管理系统
2019/02/20 Python
Pytorch 抽取vgg各层并进行定制化处理的方法
2019/08/20 Python
python GUI库图形界面开发之PyQt5状态栏控件QStatusBar详细使用方法实例
2020/02/28 Python
Python @property及getter setter原理详解
2020/03/31 Python
会计实习生工作总结的自我评价
2013/10/07 职场文书
行政专员工作职责
2013/12/22 职场文书
委托证明的格式
2014/01/10 职场文书
意向协议书范本
2014/04/23 职场文书
中华魂放飞梦想演讲稿
2014/08/26 职场文书
镇班子对照检查材料思想汇报
2014/09/24 职场文书
《去年的树》教学反思
2016/02/18 职场文书
如何在centos上使用yum安装rabbitmq-server
2021/03/31 Servers
使用refresh_token实现无感刷新页面
2022/04/26 Javascript