Shell脚本中一些常用命令
来源:互联网 发布:行书笔顺演示软件 编辑:程序博客网 时间:2024/06/07 06:37
1、pwd=`cat $jdbc_file | grep password | awk -F'=' '{print $2}'`
-F ':' (来自百度知道)就是说输入文本是通过冒号 : 来区分字段的,如果你不用-F声明分隔符,那么awk默认是用空格/tab来分隔字段的。 比如你有 a.txt,内容是hello world: This is world如果你用 awk '{print $1, $2}' a.txt那么得到的是hello world:两个字段分别是 hello 和world:而如果你用 awk -F ':' {print $1, $2}' a.txt那么得到就是hello world this is world两个字段分别是 "hello world" 和 “this is world”了.
- Shell脚本中一些常用命令
- shell脚本中一些特殊符号
- shell 脚本中一些特殊符号
- shell脚本中一些特殊符号
- shell脚本中一些特殊符号
- shell脚本中一些特殊符号
- shell脚本中一些特殊符号
- shell脚本中一些特殊符号
- shell脚本中一些特殊符号
- shell脚本中一些特殊符号
- shell脚本中一些特殊符号
- shell脚本中一些特殊符号
- shell脚本中一些特殊符号
- shell脚本中一些特殊符号
- shell脚本中一些特殊符号 .
- shell脚本中一些特殊符号
- shell脚本中一些特殊符号
- shell脚本中一些特殊符号
- HDU 4619 Warm up 2 解题报告
- HDU4611(找循环节)
- 在CentOS搭建Android开发环境
- JavaBean
- ORA-00845 ORACLE11G常见的shm问题
- Shell脚本中一些常用命令
- 教你怎样混社会(转载)
- apache 2.44安装网页压缩模块
- 配置vim
- 23-body标签修饰
- Assignment 1: Coding Exercise
- The Hound of the Baskervilles——7、Baskervill Hall
- 利用Hudson持续集成来执行Android自动化测试
- 实现随机数按概率显示 java版