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

面试题 相关文章推荐
普通PHP程序员笔试题
Jan 01 面试题
PHP面试题附答案
Nov 28 面试题
简单介绍Object类的功能、常用方法
Oct 02 面试题
SQL Server提供的3种恢复模型都是什么? 有什么区别?
May 13 面试题
第一范式(1NF)、第二范式(2NF)和第三范式(3NF)之间的区别是什么?
Apr 28 面试题
OLEDBConnection和SQLConnection有什么区别
May 31 面试题
软件设计的目标是什么
Dec 04 面试题
什么是JNDI的上下文?如何初始化JNDI上下文
Mar 10 面试题
同步和异步有何异同,在什么情况下分别使用他们?
Dec 28 面试题
当x.equals(y)等于true时,x.hashCode()与y.hashCode()可以不相等,这句话对不对
May 02 面试题
servlet面试题
Aug 20 面试题
德尔福集团DELPHI的笔试题
Feb 22 面试题
介绍一下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
基于HBase Thrift接口的一些使用问题及相关注意事项的详解
2013/06/03 PHP
php生成word并下载代码实例
2019/03/15 PHP
Laravel 解决composer相关操作提示php相关异常的问题
2019/10/23 PHP
Javascript 陷阱 window全局对象
2008/11/26 Javascript
jquery 关键字“拖曳搜索”之“拖曳”以及 图片“提示自适应放大”效果 的实现
2010/04/18 Javascript
THREE.JS入门教程(6)创建自己的全景图实现步骤
2013/01/25 Javascript
兼容IE和FF的图片上传前预览js代码
2013/05/28 Javascript
一款jquery特效编写的大度宽屏焦点图切换特效的实例代码
2013/08/05 Javascript
JS判断字符串长度的5个方法(区分中文和英文)
2014/03/18 Javascript
jQuery实现鼠标点击弹出渐变层的方法
2015/07/09 Javascript
javascript下使用Promise封装FileReader
2016/02/19 Javascript
使用jQuery的load方法设计动态加载及解决被加载页面js失效问题
2017/03/01 Javascript
Vue自定义事件(详解)
2017/08/19 Javascript
VUE2.0 ElementUI2.0表格el-table自适应高度的实现方法
2018/11/28 Javascript
VUEX 数据持久化,刷新后重新获取的例子
2019/11/12 Javascript
Vue CLI4 Vue.config.js标准配置(最全注释)
2020/06/05 Javascript
Python中强大的命令行库click入门教程
2016/12/26 Python
python实现基于SVM手写数字识别功能
2020/05/27 Python
Python实现PS滤镜碎片特效功能示例
2018/01/24 Python
python Django 创建应用过程图示详解
2019/07/29 Python
django 实现celery动态设置周期任务执行时间
2019/11/19 Python
在python中创建指定大小的多维数组方式
2019/11/28 Python
matplotlib实现显示伪彩色图像及色度条
2019/12/07 Python
Python中Flask-RESTful编写API接口(小白入门)
2019/12/11 Python
Python使用type动态创建类操作示例
2020/02/29 Python
python实现将字符串中的数字提取出来然后求和
2020/04/02 Python
在python3.64中安装pyinstaller库的方法步骤
2020/06/02 Python
浅谈matplotlib 绘制梯度下降求解过程
2020/07/12 Python
美国最受欢迎的度假目的地优惠套餐:BookVIP
2018/09/27 全球购物
学院书画协会部门职责
2013/11/28 职场文书
社区巾帼文明岗事迹材料
2014/06/03 职场文书
英语四级考试作弊检讨书
2014/09/29 职场文书
晋江市委常委班子四风问题整改工作方案
2014/10/26 职场文书
股权转让协议范本
2014/12/07 职场文书
Pandas自定义选项option设置
2021/07/25 Python
分享几种python 变量合并方法
2022/03/20 Python