sh脚本写法
1.shell注释符号:
1. 单行注释: “#”
2. 多行注释:
: << !
语句1
语句2
语句3
语句4
!
http://blog.csdn.net/lansesl2008/article/details/20558369/
2.sh的换行符号
mdl auto_test.py --once --det_mod /unsullied/sharefs/_research_detection/logs/megdet_shot/zhaojiacheng/retinanet/plate/plate.retinanet.xception145.data_v2/subnet64_89./test_model/ -det_n \
--bbr_mod /unsullied/sharefs/shiyuxuan/isilon-home/.cache/neupeak/train_log/shiyuxuan/car-models/bbregression/train_log/start_lbx.3c/models -bbr_n \
--rec_mod /unsullied/sharefs/zhangqinyi/zhudatu_data/plate/car-models/fpga-carplate-reco/config/noheat_NCPmergedata_rightlr/train_log/models -rec_n
符号用"\"表示换行,并且注意:"\"必须与前面的40、 60这些字符间隔一个空格,如果不间隔这个空格,就不能正常换行!!!!
3.串行运行几个程序
rlaunch --cpu= --gpu= --memory= --positive-tags titanx -- sh det_time_test.sh
rlaunch --cpu= --gpu= --memory= --positive-tags titanx -- sh bbr_time_test.sh
rlaunch --cpu= --gpu= --memory= --positive-tags titanx -- sh reg_time_test.sh
这样写sh脚本,之后会先运行第一个sh,然后运行第二个
4.shell的重定向是直接重写文件,要追加写文件,用>>
rlaunch --cpu= --gpu= --memory= --positive-tags 1080ti -- sh det_time_test.sh >> log.txt
rlaunch --cpu= --gpu= --memory= --positive-tags 1080ti -- sh bbr_time_test.sh >> log.txt
rlaunch --cpu= --gpu= --memory= --positive-tags 1080ti -- sh reg_time_test.sh >> log.txt
sh脚本写法的更多相关文章
- .sh脚本判断判断某一变量是否为某一数值
		.sh脚本中,判断某一变量(例如:OEM_CUSTOMER_SUPPORT)是否为某一数值(例如:0),并根据条件做不同处理,写法如下: if [ $OEM_CUSTOMER_SUPPORT -eq ... 
- sh脚本异常:/bin/sh^M:bad interpreter: No such file or directory
		在Linux中执行.sh脚本,异常/bin/sh^M: bad interpreter: No such file or directory. 分析:这是不同系统编码格式引起的:在windows系统中 ... 
- linux执行sh脚本文件命令
		linux执行sh脚本文件命令 很多时候需要多个命令来完成一项工作,而这个工作又常常是重复的,这个时候我们自然会想到将这些命令写成sh脚本,下次执行下这个脚本一切就都搞定了,下面就是发布代码的一个脚本 ... 
- sh脚本学习之: sh脚本 、sed、awk
		sh脚本 sh命令的批处理文件,支持更复杂的逻辑. Shell中的变量 参数 $0 当前脚本路径 $1....$n 脚本执行对应的第n个参数 条件判断 文件判断 test [op] path e存在 ... 
- 安装GRID时跑root.sh脚本报错(ORA-27091: unable to queue I/O)
		在安装GRID过程中,运行root.sh脚本时报如下信息: Adding Clusterware entries to upstart CRS-2672: Attempting to start 'o ... 
- sh脚本异常:bad interpreter: No such file or directory
		转:http://bluedest.iteye.com/blog/1674963 在Linux中执行.sh脚本,异常/bin/sh^M: bad interpreter: No such file o ... 
- ubuntu sh脚本双击运行
		自从13.04以后,双击sh脚本文件就已经默认是geidt打开了,要想运行,从nautilus-->文件-->首选项-->行为-->可执行文件 有三个选项,默认是第二个,如果想 ... 
- sh脚本执行Java程序
		1.不引用Jar包或者资源文件夹 最简单的程序Hello World. 首先创建Hello.java public class Hello { public static void main(Stri ... 
- linux服务器监控流量sh脚本
		服务器可能经常遇到服务器出带宽跑满,不知如何查询被哪个进程占用的情况,有一款开源的英文软件iftop功能比较强大可以查询相关信息,可能刚接触linux系统的朋友不太会使用,在此写了一个功能比较简单无需 ... 
随机推荐
- List集合与Array数组之间的互相转换
			1.数组转换成List集合 采用java中集合自带的asList()方法就可以完成转换了 String[] array = new String[] {"zhu", "w ... 
- 017--python基础作业
			一.练习题: 1.使用while循环输入 1 2 3 ... 8 9 102.求1-100的所有数的和 3.输出 1-100 内的所有奇数 4.输出 1-100 内的所有偶数 5.求1-2+3-4 . ... 
- Swift4 检验变量
			创建: 2018/05/03 判断类 public func isKind(of aClass: Swift.AnyClass) -> Bool 是否是aClass或其子类的实例 publ ... 
- bzoj 3230: 相似子串【SA+st表+二分】
			总是犯低级错误,st表都能写错-- 正反分别做一遍SA,预处理st表方便查询lcp,然后处理a[i]表示前i个后缀一共有多少个本质不同的子串,这里的子串是按字典序的,所以询问的时候直接在a上二分排名就 ... 
- CSS常见的五大布局
			本文概要 本文将介绍如下几种常见的布局: 一.单列布局 常见的单列布局有两种: header,content 和 footer 等宽的单列布局 header 与 footer 等宽,content 略 ... 
- 易爆物(X-Plosives )基础并查集
			#include <iostream> #include <algorithm> using namespace std; + ; int fa[maxn]; int Find ... 
- 排序二叉树 HDOJ 5444 Elven Postman
			题目传送门 题意:给出线性排列的树,第一个数字是根节点,后面的数如果当前点小或相等往左走,否则往右走,查询一些点走的路径 分析:题意略晦涩,其实就是排序二叉树!1<<1000 普通数组开不 ... 
- 516 Longest Palindromic Subsequence 最长回文子序列
			给定一个字符串s,找到其中最长的回文子序列.可以假设s的最大长度为1000. 详见:https://leetcode.com/problems/longest-palindromic-subseque ... 
- Apache Kylin Cube 的构建过程
			不多说,直接上干货! 1. Cube的物理模型 Cube物理模型 如上图所示,一个常用的3维立方体,包含:时间.地点.产品.假如data cell 中存放的是产量,则我们可以根据时间.地点.产品来确定 ... 
- 动手实现 Redux(二):抽离 store 和监控数据变化
			上一节 的我们有了 appState 和 dispatch: let appState = { title: { text: 'React.js 小书', color: 'red', }, conte ... 
