shell program 1
来源:互联网 发布:网络捕鱼电玩 编辑:程序博客网 时间:2024/06/04 19:32
(1)use gedit write the shell program"shell":
#! /bin/bash
echo please enter something:
read qq
echo you just enter : $qq
(2)change the document authority:
chmod +x shell
(3)run the shell:
./shell
(4)the result is:
please enter something:
12345
you just enter : 12345
this program show us:
1.the shell excute program is bash,the first sentence must be #! /bin/bash
2."echo" is use to print
3."read" is use to assign variable
4.if you want to show the variable,you have to use "$" at front of the variable
阅读全文
0 0
- windows shell program(1)
- shell program 1
- Shell Program
- shell program
- The K Shell Program Guide(1)
- windows shell program(2)
- windows shell program(3)
- windows bat shell program
- Shell program with C#
- ubuntu shell program
- linux shell program summary
- shell script : stop program
- 在shell中call Java program...
- A tiny shell program with job control
- Program work 15. Shell Sort in Java
- How to write a simple shell program
- shell-like program(shell程序的基本实施部分)
- #program用法1
- JavaWeb开发知识总结(表单重复提交,数据分页)
- stdio.h中的remainder函数
- 中序线索二叉树
- 孪生素数问题
- 常用的清除浮动方式
- shell program 1
- VUI-百度语音之Rest接口python学习笔记3-语音合成
- [PAT-乙级]1057.数零壹
- 第十三周:[Sicily]1423. 魔王bug的2色定理
- ubuntu16.04 编译安装php5.6成功
- 用反射机制和prototype实现继承
- Python tab 命令补全,以及 vim 补全
- Spring AOP自定义注解解决日志和签名校验
- 云数据中心解决方案架构图