当我们要写特别长的命令的时候,如果仅在一行内显示非常不美观。
### 解决方案1:使用转义符
Powershell允许使用转义符`来连接下一行的命令。
例如原来的命令为:
~~~powershell
HERest.exe -A -H model\$lastdir\macro -H model\$lastdir\hmmdef -M model\$nextdir -I .\lab\phone.mlf -S .\config\train.scp -t 250 150 1000 .\config\monophone
~~~
可以使用转义符重写为
~~~powershell
HERest.exe `
-A `
-H model\$lastdir\macro `
-H model\$lastdir\hmmdef `
-M model\$nextdir `
-I .\lab\phone.mlf `
-S .\config\train.scp `
-t 250 150 1000 `
.\config\monophone
~~~
注意转义符只能在原名命令的空白处插入。并且只在Powershell和ps1脚本中生效,Powershell ISE的控制台不能识别这种写法。
- Linux
- bash常见的命令汇总
- 切换用户登陆到bash时的目录
- grep匹配tab
- gperftools的使用
- Hyper-V安装Linux
- ubuntu on windows 忘记密码怎么办
- 修改用户默认shell
- ubuntu 安装pip
- Arch Linux安装记录
- Hyper-V中安装Linux的一些问题
- ASR
- 数据集
- PCM音频文件
- One-Pass算法
- CHiME5环境配置中遇到的一些问题
- Python
- 命令行参数解析
- 三目运算符
- Numpy
- 练习1
- 练习2
- Others
- GNU make 的用法
- pandoc
- Git
- PowerShell
- 花括号的作用
- 一条命令在多行内输入
- Tex
- Latex基础知识
- tikz库
- CTex使用中的一些问题
- C++
- 标准库list
- 数据结构
- kdtree