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

面试题 相关文章推荐
包装类的功能、种类、常用方法
Jan 27 面试题
普天C++笔试题
Mar 20 面试题
编写strcpy函数
Jun 24 面试题
介绍一下SQL Server里面的索引视图
Jul 31 面试题
数据库什么时候应该被重组
Nov 02 面试题
请解释在new与override的区别
Oct 29 面试题
一套C#面试题
Oct 09 面试题
Why we need EJB
Oct 20 面试题
Prototype中如何为一个元素添加一个方法
Dec 08 面试题
WebSphere面试题:在WebSphere里面如何部署一个应用
Aug 02 面试题
short s1 = 1; s1 = s1 + 1;有什么错? short s1 = 1; s1 += 1;有什么错?
Sep 26 面试题
95%的面试官都会问到的50道Java线程题,附答案
Aug 03 面试题
介绍一下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中计算程序运行时间的类代码
2012/11/03 PHP
PHP的mysqli_stat()函数讲解
2019/01/23 PHP
PHP并发场景的三种解决方案代码实例
2021/02/27 PHP
Node.js的特点和应用场景介绍
2014/11/04 Javascript
jQuery中prevAll()方法用法实例
2015/01/08 Javascript
JavaScript实现跑马灯抽奖活动实例代码解析与优化(二)
2016/02/16 Javascript
jQuery内容过滤选择器用法示例
2016/09/09 Javascript
easyui form validate总是返回false的原因及解决方法
2016/11/07 Javascript
使用jQuery实现两个div中按钮互换位置的实例代码
2017/09/21 jQuery
Vue.js分页组件实现:diVuePagination的使用详解
2018/01/10 Javascript
Vue引用第三方datepicker插件无法监听datepicker输入框的值的解决
2018/01/27 Javascript
JS中getElementsByClassName与classList兼容性问题解决方案分析
2019/08/07 Javascript
查找Vue中下标的操作(some和findindex)
2020/08/12 Javascript
[46:28]EG vs Liquid 2019国际邀请赛淘汰赛 败者组 BO3 第二场 8.23
2019/09/05 DOTA
python基础教程之获取本机ip数据包示例
2014/02/10 Python
python实现巡检系统(solaris)示例
2014/04/02 Python
解决python2.7用pip安装包时出现错误的问题
2017/01/23 Python
对numpy的array和python中自带的list之间相互转化详解
2018/04/13 Python
Win8.1下安装Python3.6提示0x80240017错误的解决方法
2018/07/31 Python
Opencv实现抠图背景图替换功能
2019/05/21 Python
解决Django中调用keras的模型出现的问题
2019/08/07 Python
python opencv鼠标事件实现画框圈定目标获取坐标信息
2020/04/18 Python
Python学习笔记之For循环用法详解
2019/08/14 Python
Python 批量刷博客园访问量脚本过程解析
2019/08/30 Python
python使用多线程编写tcp客户端程序
2019/09/02 Python
Python获取二维数组的行列数的2种方法
2020/02/11 Python
实习期自我鉴定
2013/10/11 职场文书
简历里的自我评价范文
2014/02/24 职场文书
中学生操行评语
2014/04/24 职场文书
《鲁班和橹板》教学反思
2014/04/27 职场文书
纪念九一八事变演讲稿1000字
2014/09/14 职场文书
庆六一开幕词
2015/01/29 职场文书
2016年感恩节活动总结大全
2016/04/01 职场文书
一封真诚的自荐信帮你赢得机会
2019/05/07 职场文书
六年级上册《闻官军收河南河北》的教学设计
2019/11/15 职场文书
MySQL中in和exists区别详解
2021/06/03 MySQL