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

面试题 相关文章推荐
main 主函数执行完毕后,是否可能会再执行一段代码,给出说明
Dec 05 面试题
编写函数,将一个3*3矩阵转置
Oct 09 面试题
iostream与iostream.h的区别
Jan 16 面试题
Javascript如何发送一个Ajax请求
Jan 26 面试题
简述DNS进行域名解析的过程
Dec 02 面试题
类和结构的区别
Aug 15 面试题
Linux内核的同步机制是什么?主要有哪几种内核锁
Jan 03 面试题
linux面试题参考答案(7)
Jul 24 面试题
说一下Linux下有关用户和组管理的命令
Aug 18 面试题
EJB的基本架构
Sep 22 面试题
简单叙述一下MYSQL的优化
May 09 面试题
Java程序员综合测试题
Apr 25 面试题
介绍一下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
require(),include(),require_once()和include_once()区别
2008/03/27 PHP
PHP常用技巧汇总
2016/03/04 PHP
让你的PHP7更快之Hugepage用法分析
2016/05/31 PHP
PHP手机号码及邮箱正则表达式实例解析
2020/07/11 PHP
ThinkPhP+Apache+PHPstorm整合框架流程图解
2020/11/23 PHP
VBScript版代码高亮
2006/06/26 Javascript
jQuery选中select控件 无法设置selected的解决方法
2010/09/01 Javascript
jQuery怎么解析Json字符串(Json格式/Json对象)
2013/08/09 Javascript
jQuery删除节点的三个方法即remove()detach()和empty()
2013/12/27 Javascript
动态加载jquery库的方法
2014/02/12 Javascript
Underscore.js常用方法总结
2015/02/28 Javascript
Javascript实现单例模式
2016/01/24 Javascript
BootStrap下jQuery自动完成的样式调整
2016/05/30 Javascript
浅谈JS中json数据的处理
2016/06/30 Javascript
js Date()日期函数浏览器兼容问题解决方法
2017/09/12 Javascript
JS闭包的几种常见形式实例详解
2017/09/16 Javascript
Vue 使用Props属性实现父子组件的动态传值详解
2019/11/13 Javascript
uni-app实现获取验证码倒计时功能
2020/11/01 Javascript
[54:57]DOTA2-DPC中国联赛定级赛 Aster vs DLG BO3第二场 1月8日
2021/03/11 DOTA
linux下安装easy_install的方法
2013/02/10 Python
Python中用字符串调用函数或方法示例代码
2017/08/04 Python
pygame游戏之旅 添加碰撞效果的方法
2018/11/20 Python
Python面向对象程序设计类的封装与继承用法示例
2019/04/12 Python
Django Rest framework权限的详细用法
2019/07/25 Python
如何利用python给图片添加半透明水印
2019/09/06 Python
在 Jupyter 中重新导入特定的 Python 文件(场景分析)
2019/10/27 Python
python base64库给用户名或密码加密的流程
2020/01/02 Python
python使用信号量动态更新配置文件的操作
2020/04/01 Python
关于Python3爬虫利器Appium的安装步骤
2020/07/29 Python
CSS3 Media Queries详细介绍和使用实例
2014/05/08 HTML / CSS
怎样让char类型的东西转换成int类型
2013/12/09 面试题
自我鉴定200字
2013/10/28 职场文书
《猫》教学反思
2014/02/26 职场文书
八年级数学教学反思
2016/02/17 职场文书
Python 视频画质增强
2022/04/28 Python
MySQL自定义函数及触发器
2022/08/05 MySQL