sh 来自http://stackoverflow.com/questions/35965783/delete-all-lines-before-first-occurrence-of-specifi

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 来自http://stackoverflow.com/questions/35965783/delete-all-lines-before-first-occurrence-of-specifi相关的知识,希望对你有一定的参考价值。

# another idiomatic awk solution (and fewest keystrokes) is

# remove before somestring
awk '/somestring/,0' file > deleted_file

# remove after someotherstring, including someotherstring
sed -n '/someotherstring/q;p' chrM.fa.del1 > chrM.fa.del2

以上是关于sh 来自http://stackoverflow.com/questions/35965783/delete-all-lines-before-first-occurrence-of-specifi的主要内容,如果未能解决你的问题,请参考以下文章

sh Bash - 时间戳功能示例 - 来自http://stackoverflow.com/questions/17066250/create-timestamp-variable-in-bash

sh Bash - 时间戳功能示例 - 来自http://stackoverflow.com/questions/17066250/create-timestamp-variable-in-bash

sh 暂时更改bash中的当前工作目录以运行命令 - 来自http://stackoverflow.com/questions/10382141/temporarily-change-

sh 来自http://stackoverflow.com/questions/9210446/replace-local-branch-with-remote-branch-entirely

sh 来自http://stackoverflow.com/questions/9210446/replace-local-branch-with-remote-branch-entirely

sh 为WordPress安装设置正确的文件权限 - 来自http://stackoverflow.com/questions/18352682/correct-file-permissions-fo