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

面试题 相关文章推荐
一些PHP的面试题
May 06 面试题
如果NULL定义成#define NULL((char *)0)难道不就可以向函数传入不加转换的NULL了吗
Feb 15 面试题
杭州时比特电子有限公司SQL
Aug 22 面试题
逻辑链路控制协议
Oct 01 面试题
在c#中using和new这两个关键字有什么意义
May 19 面试题
27个经典Linux面试题及答案,你知道几个?
Mar 11 面试题
企业面试题试卷附带答案
Dec 20 面试题
说说在weblogic中开发消息Bean时的persistent与non-persisten的差别
Apr 07 面试题
几个判断型的面试题
Jul 03 面试题
是否可以从一个static方法内部发出对非static方法的调用?
Aug 18 面试题
SOA面试题:如何在SOA中实现松耦合
Jul 21 面试题
介绍一下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
输出控制类
2006/10/09 PHP
Adnroid 微信内置浏览器清除缓存
2016/07/11 PHP
php实现压缩合并js的方法【附demo源码下载】
2016/09/22 PHP
PHP接收App端发送文件流的方法
2016/09/23 PHP
php微信开发之关注事件
2018/06/14 PHP
jquery 获取json数据实现代码
2009/04/27 Javascript
JavaScript中的console.group()函数详细介绍
2014/12/29 Javascript
JavaScript字符串常用类使用方法汇总
2015/04/14 Javascript
Extjs 点击复选框在表格中增加相关信息行
2016/07/12 Javascript
JavaScript关于提高网站性能的几点建议(一)
2016/07/24 Javascript
javascript稀疏数组(sparse array)和密集数组用法分析
2016/12/28 Javascript
简单实现js悬浮导航效果
2017/02/05 Javascript
基于JavaScript实现焦点图轮播效果
2017/03/27 Javascript
Vue中保存数据到磁盘文件的方法
2018/09/06 Javascript
vue-mugen-scroll组件实现pc端滚动刷新
2019/08/16 Javascript
解决包含在label标签下的checkbox在ie8及以下版本点击事件无效果兼容的问题
2019/10/27 Javascript
微信小程序实现滚动Tab选项卡
2020/11/16 Javascript
[01:56]2014DOTA2西雅图邀请赛 MVP外卡赛老队长精辟点评
2014/07/09 DOTA
[02:54]辉夜杯主赛事第二日败者组 iG.V赛后采访
2015/12/26 DOTA
Python生成随机密码
2015/03/10 Python
python中快速进行多个字符替换的方法小结
2016/12/15 Python
对python中的高效迭代器函数详解
2018/10/18 Python
Python不同目录间进行模块调用的实现方法
2019/01/29 Python
python利用selenium进行浏览器爬虫
2019/04/25 Python
Ubuntu18.04下python版本完美切换的解决方法
2019/06/14 Python
Python中的单下划线和双下划线使用场景详解
2019/09/09 Python
python实现word文档批量转成自定义格式的excel文档的思路及实例代码
2020/02/21 Python
python调用API接口实现登陆短信验证
2020/05/10 Python
浅谈keras 的抽象后端(from keras import backend as K)
2020/06/16 Python
python 实现ping测试延迟的两种方法
2020/12/10 Python
创先争优制度
2014/01/21 职场文书
宣传普通话标语
2014/06/27 职场文书
学校师德师风整改方案
2014/10/28 职场文书
2015年关爱留守儿童工作总结
2015/05/22 职场文书
农村结婚典礼主持词
2015/06/29 职场文书
SQL Server查询某个字段在哪些表中存在
2022/03/03 SQL Server