问题标签 [zcat]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
shell - 进程替换 tcpdump 脚本错误
如果我在终端中编写以下命令,它将完美运行
如果我把它放在一个脚本中,我会得到一个错误,比如“unexpected”(“ in line ...”我没有确切的错误行,因为我正在通过 ssh 在服务器上工作,现在我没有访问权限到它。服务器应该在BSD上运行,现在我不知道使用哪个shell。我需要将这些行放在脚本中,因为我需要对大量pcap.gz文件执行此命令。
gzip - 如何在不解压缩的情况下从 .gz 压缩文件中获取几行
如何从 gzip 文件中获取前几行?我试过zcat,但它抛出一个错误
c - llseek return ESPIPE when calling zcat all.tgz | ./cycletee
I modified GNU tee
to cycletee
Source Code (You can download the binary from https://github.com/vls/cycletee/tree/master/bin)
What it does can be explained by the following example:
Then there is a all.tgz
(See Appendix for building script)
all.tgz
has three text file and totally 9000000 lines.
Everything is fine. Like:
except calling:
when it reads the No.3000000 line, it exits.
strace it I got this message and it exited:
Question
Anyone can point out the problem of my source code?
Any debugging technique to figure out the problem will be appreciated. I don't know how to use
gdb
in this situation.
Appendix
all.tgz
can be built by this Python sciprt https://gist.github.com/1500742Environment: Ubuntu 10.04 32bit, CentOS 5.4 64bit
regex - 如何在 perl 中使用 zcat 和正则表达式?
我已经压缩了要使用以下命令打开的 .gz 文件:
基本上我的目标是只打印出与我的正则表达式匹配的 zip 文件中的某些行......文件很大,所以我现在只想输出到标准输出......我该怎么做?我在想类似的东西:
另外,我不确定打印与正则表达式匹配的行的语法。
c - 如何打印命令行命令的一部分
您好,我目前正在尝试在运行程序时打印命令行的某个部分。我目前运行我的程序如下
我想要完成的是将命令行的“gcc”部分打印到单独的文件中。有什么办法可以做到这一点。谢谢您的帮助
我忘了提到这是在 c 而不是 C++
bash - Http 在 bash 中获取 ungzip 响应
我需要手动解压缩以下页面的响应:http: //muaban.net/ho-chi-minh.html
我正在做
直到响应实际包含Content-Encoding: gzip
或Content-Encoding: deflate
标题(有时它只是纯文本),然后
但它说输入不是 gzip 格式。
以下是标题:
grep - xargs 字符串用作 agrep 的输入
伙计们,我正在使用 xargs 传递 agrep 的输入。我正在使用如下所示的 xargs
我的目标是将这个请求 ID 放在另一个文件“文件 B”中。由于这个文件是压缩的,我需要在执行 agrep 之前使用 zcat ......但是如果我这样做,我会得到不正确的结果.. 我在 agrep 中使用的最终“字符串”不正确.. 任何关于此的建议都将是高度有帮助。
linux - 无效谓词 zcat
我正在尝试检索文件(.gz)并在找到它后自动读取它,我想将其包含在“查找”命令的 [action] 部分中,不幸的是由于某种原因无法正常工作。我正在做的是:
我得到的是:查找:无效谓词`-zcat'
那个动作有什么问题?有什么建议吗?
unix - 如何使用 zcat 作为 unix 中函数的输入?
我有一些非常大的文件,并且服务器空间不大,而且解压缩这些文件需要很长时间,所以我希望使用 zcat 作为函数的输入?
我一直在使用的是
file1 是压缩文件,而 outputfile 显然是 samtools 中视图函数的输出。samtools 的输入通常介于 -bS 和 >
我上面的东西不起作用,有什么帮助吗?谢谢