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

面试题 相关文章推荐
查询优化的一般准则有哪些
Mar 08 面试题
一些高难度的SQL面试题
Nov 29 面试题
如何转换一个字符串到enum值
Apr 12 面试题
结构和类有什么异同
Jul 16 面试题
简单说下OSPF的操作过程
Aug 13 面试题
C#实现启动一个进程
Oct 01 面试题
Linux常见面试题
Oct 04 面试题
Linux的主要特性
Sep 03 面试题
do you have any Best Practice for testing
Jun 04 面试题
Prototype是怎么扩展DOM的
Oct 01 面试题
Structs界面控制层技术
Oct 11 面试题
Delphi软件工程师试题
Jan 29 面试题
介绍一下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中for循环语句的几种变型
2006/11/26 PHP
两个开源的Php输出Excel文件类
2010/02/08 PHP
smarty巧妙处理iframe中内容页的代码
2012/03/07 PHP
UPUPW 更新 64 位 Apache 系列 PHP 7.0 正式版
2015/12/08 PHP
ThinkPHP3.2.3实现分页的方法详解
2016/06/03 PHP
漂亮的thinkphp 跳转页封装示例
2019/10/16 PHP
img的onload的另类用法
2008/01/10 Javascript
一个可以随意添加多个序列的tag函数
2009/07/21 Javascript
JS批量操作CSS属性详细解析
2013/12/16 Javascript
jquery教程ajax请求json数据示例
2014/01/13 Javascript
JavaScript字符串对象fromCharCode方法入门实例(用于把Unicode值转换为字符串)
2014/10/17 Javascript
简易的投票系统以及js刷票思路和方法
2015/04/07 Javascript
基于jQuery实现带动画效果超炫酷的弹出对话框(附源码下载)
2016/02/22 Javascript
jQuery实现的精美平滑二级下拉菜单效果代码
2016/03/28 Javascript
在Node.js中使用Javascript Generators详解
2016/05/05 Javascript
jQuery选择器总结之常用元素查找方法
2016/08/04 Javascript
详解如何让Express支持async/await
2017/10/09 Javascript
手动用webpack搭建第一个ReactApp的示例
2018/04/11 Javascript
详解Angular中实现自定义组件的双向绑定的两种方法
2018/11/23 Javascript
通过cordova将vue项目打包为webapp的方法
2019/02/02 Javascript
vue 表单输入框不支持focus及blur事件的解决方案
2020/11/17 Vue.js
python sqlobject(mysql)中文乱码解决方法
2008/11/14 Python
Python的Django框架中的数据过滤功能
2015/07/17 Python
python与C互相调用的方法详解
2017/07/14 Python
Jupyter安装nbextensions,启动提示没有nbextensions库
2020/04/23 Python
Python实现通过继承覆盖方法示例
2018/07/02 Python
PyTorch搭建一维线性回归模型(二)
2019/05/22 Python
python实现随机漫步方法和原理
2019/06/10 Python
Mac PyCharm中的.gitignore 安装设置教程
2020/04/16 Python
Django使用rest_framework写出API
2020/05/21 Python
html5需遵循的6个设计原则
2016/04/27 HTML / CSS
彼得罗夫美国官网:Peter Thomas Roth美国(青瓜面膜)
2017/11/05 全球购物
保护母亲河倡议书
2014/04/14 职场文书
大学新生军训自我鉴定范文
2014/09/13 职场文书
小学生九一八纪念日83周年演讲稿500字
2014/09/17 职场文书
总结Java对象被序列化的两种方法
2021/06/30 Java/Android