小编pno*_*nom的帖子

使用正则表达式提取文件内容

我有一个链接,我只想返回 www 之间的内容。和.com

例如www.blablabla.com只会返回blablabla

我怎么能那样做?当我使用grep '\.[a-zA-Z0-9\.-]*\.' 时,它给了我.blablabla.

shell grep scripting bash

9
推荐指数
1
解决办法
3万
查看次数

我可以以某种方式更新压缩档案吗?

我正在尝试查找具有给定扩展名的所有文件,但出现此错误:

tar: Cannot update compressed archives
Try 'tar --help' or 'tar --usage' for more information.
tar: Cannot update compressed archives
Try 'tar --help' or 'tar --usage' for more information.
tar: Cannot update compressed archives
Try 'tar --help' or 'tar --usage' for more information.
tar: Cannot update compressed archives
Try 'tar --help' or 'tar --usage' for more information.
tar: Cannot update compressed archives
Try 'tar --help' or 'tar --usage' for more information.
tar: Cannot update compressed archives
Try 'tar --help' or …
Run Code Online (Sandbox Code Playgroud)

tar shell-script bzip2

4
推荐指数
1
解决办法
2902
查看次数

标签 统计

bash ×1

bzip2 ×1

grep ×1

scripting ×1

shell ×1

shell-script ×1

tar ×1