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

面试题 相关文章推荐
如何减少垃圾回收让内存更加有效使用
Oct 18 面试题
介绍java中初始化块的使用
Sep 11 面试题
main 函数执行以前,还会执行什么代码
Apr 17 面试题
编写用C语言实现的求n阶阶乘问题的递归算法
Oct 21 面试题
.net面试题
Sep 17 面试题
.net面试题
Dec 22 面试题
Windows和Linux动态库应用异同
Apr 17 面试题
海量信息软件测试笔试题
Aug 08 面试题
北京麒麟网信息技术有限公司网络游戏测试面试题
Sep 28 面试题
EJB面试题
Jul 28 面试题
Ajax请求总共有多少种Callback
Jul 17 面试题
请用Python写一个获取用户输入数字,并根据数字大小输出不同信息的脚本
May 20 面试题
介绍一下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
PHP下判断网址是否有效的代码
2011/10/08 PHP
PHP异常Parse error: syntax error, unexpected T_VAR错误解决方法
2014/05/06 PHP
PHP去掉json字符串中的反斜杠\及去掉双引号前的反斜杠
2015/09/30 PHP
PHP设计模式之抽象工厂模式实例分析
2019/03/25 PHP
Javascript 日期处理之时区问题
2009/10/08 Javascript
JS控制显示隐藏兼容问题(IE6、IE7、IE8)
2010/04/01 Javascript
javascript 数字格式化输出的实现代码
2013/12/10 Javascript
jquery操作下拉列表、文本框、复选框、单选框集合(收藏)
2014/01/08 Javascript
js比较日期大小的方法
2015/05/12 Javascript
纯js模拟div层弹性运动的方法
2015/07/27 Javascript
JavaScript 继承详解(五)
2016/10/11 Javascript
vue的无缝滚动组件vue-seamless-scroll实例
2017/12/18 Javascript
vue仿element实现分页器效果
2018/09/13 Javascript
微信小程序实现选项卡效果
2018/11/06 Javascript
vue+node实现图片上传及预览的示例方法
2018/11/22 Javascript
js字符串倒序的实例代码
2018/11/30 Javascript
vue实现div单选多选功能
2020/07/16 Javascript
[01:30:54]《加油DOTA》 第三期
2014/08/18 DOTA
python使用os模块的os.walk遍历文件夹示例
2014/01/27 Python
python实现linux服务器批量修改密码并生成execl
2014/04/22 Python
在Python的Django框架上部署ORM库的教程
2015/04/20 Python
详解Python的Django框架中的中间件
2015/07/24 Python
Python 搭建Web站点之Web服务器与Web框架
2016/11/06 Python
python如何修改装饰器中参数
2018/03/20 Python
Ubuntu16.04/树莓派Python3+opencv配置教程(分享)
2018/04/02 Python
对django中foreignkey的简单使用详解
2019/07/28 Python
Python爬虫获取豆瓣电影并写入excel
2020/07/31 Python
详解如何修改jupyter notebook的默认目录和默认浏览器
2021/01/24 Python
CSS3之transition实现下划线的示例代码
2018/05/30 HTML / CSS
size?德国官方网站:英国伦敦的球鞋精品店
2018/03/17 全球购物
写出一个方法实现冒泡排序
2016/07/08 面试题
八荣八耻的活动方案
2014/08/16 职场文书
教师节寄语2015
2015/03/23 职场文书
正规欠条模板
2015/07/03 职场文书
2019商业计划书格式、范文
2019/04/24 职场文书
springboot拦截器无法注入redisTemplate的解决方法
2021/06/27 Java/Android