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

面试题 相关文章推荐
请用用Java代码写一个堆栈
Jan 26 面试题
求两个数的乘积和商数,该作用由宏定义来实现
Mar 13 面试题
如果NULL和0作为空指针常数是等价的,那我到底该用哪一个
Sep 16 面试题
如何实现一个自定义类的序列化
May 22 面试题
linux面试题参考答案(7)
Oct 29 面试题
几个Linux面试题笔试题
Aug 01 面试题
一套软件测试笔试题
Jul 25 面试题
AURALog面试题软件测试方面
Oct 22 面试题
Ajax主要包含了哪些技术
Jun 12 面试题
Java基础面试题
Jul 19 面试题
JAVA程序设计笔试题面试题一套
Jul 28 面试题
什么是抽象
Dec 13 面试题
介绍一下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
下拉列表多级联动dropDownList示例代码
2013/06/27 PHP
php实现基于微信公众平台开发SDK(demo)扩展的方法
2014/12/22 PHP
php基于Fleaphp框架实现cvs数据导入MySQL的方法
2016/02/23 PHP
Yii2.0多文件上传实例说明
2017/07/24 PHP
javascript学习基础笔记之DOM对象操作
2011/11/03 Javascript
JavaScript将相对地址转换为绝对地址示例代码
2013/07/19 Javascript
实用框架(iframe)操作代码
2014/10/23 Javascript
JS控制HTML元素的显示和隐藏的两种方法
2016/09/27 Javascript
解决ajax不能访问本地文件问题(利用js跨域原理)
2017/01/24 Javascript
easy ui datagrid 从编辑框中获取值的方法
2017/02/22 Javascript
利用Blob进行文件上传的完整步骤
2018/08/02 Javascript
详解Ubuntu安装angular-cli遇到的坑
2018/09/08 Javascript
Layui 数据表格批量删除和多条件搜索的实例
2019/09/04 Javascript
JS错误处理与调试操作实例分析
2020/04/13 Javascript
如何利用nodejs自动定时发送邮件提醒(超实用)
2020/12/01 NodeJs
python调用windows api锁定计算机示例
2014/04/17 Python
Python基于Matplotlib库简单绘制折线图的方法示例
2017/08/14 Python
Diango + uwsgi + nginx项目部署的全过程(可外网访问)
2018/04/22 Python
解决python给列表里添加字典时被最后一个覆盖的问题
2019/01/21 Python
Python3利用Dlib实现摄像头实时人脸检测和平铺显示示例
2019/02/21 Python
Python统计一个字符串中每个字符出现了多少次的方法【字符串转换为列表再统计】
2019/05/05 Python
python3-flask-3将信息写入日志的实操方法
2019/11/12 Python
详解用Python调用百度地图正/逆地理编码API
2020/07/02 Python
python 如何将office文件转换为PDF
2020/09/22 Python
Windows环境下Python3.6.8 importError: DLLload failed:找不到指定的模块
2020/11/01 Python
C&A巴西网上商店:时尚、衣服、手机和鞋子
2020/06/07 全球购物
成考报名单位证明范本
2014/01/16 职场文书
关于奉献的演讲稿
2014/05/21 职场文书
竞选班干部演讲稿300字
2014/08/20 职场文书
公司的门卫岗位职责
2014/09/09 职场文书
党的群众路线教育实践活动个人剖析材料
2014/10/07 职场文书
2015年团支部工作总结
2015/04/03 职场文书
市场督导岗位职责
2015/04/10 职场文书
2015年资料员工作总结
2015/04/25 职场文书
Python数据可视化之用Matplotlib绘制常用图形
2021/06/03 Python
Mysql 如何合理地统计一个数据库里的所有表的数据量
2022/04/18 MySQL