活腻了的西红柿

一枚默默的开发学习者

导航

2013年5月27日 #

linux read 用法

摘要: linux read 用法1、基本读取read命令接收标准输入(键盘)的输入,或其他文件描述符的输入(后面在说)。得到输入后,read命令将数据放入一个标准变量中。下面是 read命令的最简单形式::#!/bin/bashecho -n "Enter your name:" //参数-n的作用是不换行,echo默认是换行read name //从键盘输入echo "hello $name,welcome to my program" //显示信息exit 0 //退出shell程序。//********************************由于 阅读全文

posted @ 2013-05-27 12:24 _卞卞 阅读(194) 评论(0) 推荐(0) 编辑