小编Ash*_*ley的帖子

如何将输出写入与输入同名的文件?

我想知道如何处理来自某个文件夹 dir1 的文件,如果它们通过各种任务进行管道传输,最后我希望输出以相同的文件夹结构和文件名写入,即说我有 2 个文件;dir1/file1dir1/file2。我想要以下命令:

task1 dir1/* | task2 | task3 --output dir2/${filename}
Run Code Online (Sandbox Code Playgroud)

输出dir2/file1dir2/file2哪个应该代表处理过的文件。

command-line bash shell-script

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

在 ubuntu 上安装 PCRE 的问题

我正在尝试在 Ubuntu 14.04 上安装 PCRE 8.37,但出现以下错误:

sudo ./configure && make && make install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the …
Run Code Online (Sandbox Code Playgroud)

ubuntu

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

标签 统计

bash ×1

command-line ×1

shell-script ×1

ubuntu ×1