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

面试题 相关文章推荐
说出ArrayList,Vector, LinkedList的存储性能和特性
Jan 04 面试题
Java的基础面试题附答案
Jan 10 面试题
东方通信股份有限公司VC面试题
Aug 27 面试题
计算 s=(x*y)1/2,用两个宏定义来实现
Aug 11 面试题
SQL面试题
Apr 30 面试题
MySQL面试题
Jan 12 面试题
广州迈达威.net面试题目
Mar 10 面试题
Linux如何为某个操作添加别名
Mar 01 面试题
几个Shell Script面试题
Aug 31 面试题
远程调用的原理
Jul 05 面试题
Python里面如何拷贝一个对象
Feb 17 面试题
Java文件和目录(IO)操作
Aug 26 面试题
介绍一下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学习笔记之二
2011/01/17 PHP
基于php设计模式中工厂模式详细介绍
2013/05/15 PHP
ThinkPHP中U方法的使用浅析
2014/06/13 PHP
PHP中__FILE__、dirname与basename用法实例分析
2014/12/01 PHP
9个实用的PHP代码片段分享
2015/01/22 PHP
Zend Framework教程之Zend_Config_Ini用法分析
2016/03/23 PHP
详解Yii实现分页的两种方法
2017/01/14 PHP
php实现简单四则运算器
2020/11/29 PHP
使用javascript实现ListBox左右全选,单选,多选,全请
2013/11/07 Javascript
js数组的基本操作(很全自己整理的)
2014/10/16 Javascript
ECMAScript5中的对象存取器属性:getter和setter介绍
2014/12/08 Javascript
javascript判断数组内是否重复的方法
2015/04/21 Javascript
node.js下LDAP查询实例分享
2015/09/30 Javascript
浅析创建javascript对象的方法
2016/05/13 Javascript
图文讲解用vue-cli脚手架创建vue项目步骤
2019/02/12 Javascript
vue cli3 调用百度翻译API翻译页面的实现示例
2019/09/13 Javascript
layui自定义工具栏的方法
2019/09/19 Javascript
JavaScript原型式继承实现方法
2019/11/06 Javascript
node.js中Buffer缓冲器的原理与使用方法分析
2019/11/23 Javascript
JS如何实现封装列表右滑动删除收藏按钮
2020/07/23 Javascript
[05:05]第三天的dota2
2013/07/29 DOTA
[51:17]VGJ.T vs Mineski 2018国际邀请赛小组赛BO2 第二场 8.18
2018/08/19 DOTA
Python3.X 线程中信号量的使用方法示例
2017/07/24 Python
我用Python抓取了7000 多本电子书案例详解
2019/03/25 Python
django admin后台添加导出excel功能示例代码
2019/05/15 Python
Python实现不规则图形填充的思路
2020/02/02 Python
python json load json 数据后出现乱序的解决方案
2020/02/27 Python
详解win10下pytorch-gpu安装以及CUDA详细安装过程
2021/01/28 Python
python可视化分析的实现(matplotlib、seaborn、ggplot2)
2021/02/03 Python
CSS3实现鼠标悬停显示扩展内容
2016/08/24 HTML / CSS
html5中canvas学习笔记2-判断浏览器是否支持canvas
2013/01/06 HTML / CSS
中学生操行评语大全
2014/04/24 职场文书
初中优秀学生评语
2014/12/29 职场文书
幼儿园亲子活动通知
2015/04/24 职场文书
调解协议书范本
2016/03/21 职场文书
Python3使用Qt5来实现简易的五子棋小游戏
2022/05/02 Python