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

面试题 相关文章推荐
C语言变量的命名规则都有哪些
Dec 27 面试题
怎样建立和理解非常复杂的声明?例如定义一个包含N 个指向返回 指向字符的指针的函数的指针的数组?
Mar 19 面试题
一家外企的面试题目(C/C++面试题,C语言面试题)
Mar 24 面试题
简述数组与指针的区别
Jan 02 面试题
说一下mysql, oracle等常见数据库的分页实现方案
Sep 29 面试题
Net Remoting把服务器端激活两种模式
Jan 22 面试题
P/Invoke是什么
Jul 31 面试题
介绍一下grep命令的使用
Jun 12 面试题
测试驱动开发的主要步骤是什么
Dec 10 面试题
软件测试工程师面试问题精选
Oct 28 面试题
Java面试题:Java类的Main方法如果是Private将会怎么样
Aug 18 面试题
JAVA高级程序员面试题
Sep 06 面试题
介绍一下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中变量及部分适用方法
2008/03/27 PHP
php根据用户名和手机号查询是否存在手机号码
2017/02/16 PHP
jQuery的一些注意
2006/12/06 Javascript
JS的IE和Firefox兼容性集锦
2006/12/11 Javascript
关于JavaScript的gzip静态压缩方法
2007/01/05 Javascript
JS声明变量背后的编译原理剖析
2012/12/28 Javascript
json数据与字符串的相互转化示例
2013/09/18 Javascript
jquery使用append(content)方法注意事项分享
2014/01/06 Javascript
JS实现div居中示例
2014/04/17 Javascript
$.each遍历对象、数组的属性值并进行处理
2014/07/18 Javascript
JavaScript判断变量是对象还是数组的方法
2014/08/28 Javascript
js正则表达式匹配数字字母下划线等
2015/04/14 Javascript
七夕情人节丘比特射箭小游戏
2015/08/20 Javascript
BootStrap的alert提示框的关闭后再显示怎么解决
2016/05/17 Javascript
Javascript闭包与函数柯里化浅析
2016/06/22 Javascript
修改jquery中dialog的title属性方法(推荐)
2016/08/26 Javascript
localStorage实现便签小程序
2016/11/28 Javascript
JavaScript获取服务器端时间的方法
2016/11/29 Javascript
Vue和Bootstrap的整合思路详解
2017/06/30 Javascript
对于js垃圾回收机制的理解
2017/09/14 Javascript
详解angularjs实现echart图表效果最简洁教程
2017/11/29 Javascript
jQuery实现点击旋转,再点击恢复初始状态动画效果示例
2018/12/11 jQuery
一文搞懂ES6中的Map和Set
2019/05/20 Javascript
vue swipe自定义组件实现轮播效果
2019/07/03 Javascript
Node配合WebSocket做多文件下载以及进度回传
2019/11/07 Javascript
jQuery与原生JavaScript选择HTML元素集合用法对比分析
2019/11/26 jQuery
Python中使用异常处理来判断运行的操作系统平台方法
2015/01/22 Python
Python学习小技巧之列表项的排序
2017/05/20 Python
python itchat实现微信好友头像拼接图的示例代码
2017/08/14 Python
Python使用遗传算法解决最大流问题
2018/01/29 Python
浅谈HTML5新增和废弃的标签
2019/04/28 HTML / CSS
大女孩胸罩:Big Girls Bras
2016/12/15 全球购物
易程科技软件测试笔试
2013/03/24 面试题
2015年度个人工作总结报告
2015/10/24 职场文书
2016年党员公开承诺书范文
2016/03/24 职场文书
数据库之SQL技巧整理案例
2021/07/07 SQL Server