小编Vir*_*ren的帖子

awk,sed:一个衬管命令,用于从给定文件夹中的_all_文件名中删除空格?

之前:

eng-vshakya:scripts vshakya$ ls
American Samoa.png                  Faroe Islands.png                   Saint Barthelemy.png
Run Code Online (Sandbox Code Playgroud)

后:

eng-vshakya:scripts vshakya$ ls
AmericanSamoa.png                   FaroeIslands.png                    SaintBarthelemy.png
Run Code Online (Sandbox Code Playgroud)

尝试下面的原型,但它不起作用:(抱歉,当涉及到awk/sed时不是很好:(

ls *.png | sed 's/\ /\\\ /g' | awk '{print("mv "$1" "$1)}'
Run Code Online (Sandbox Code Playgroud)

[上面是原型,真正的命令,我想,将是:

ls *.png | sed 's/\ /\\\ /g' | awk '{print("mv "$1" "$1)}' | sed 's/\ //g'
Run Code Online (Sandbox Code Playgroud)

]

awk command sed

7
推荐指数
2
解决办法
9223
查看次数

Makefile.am:如何在configure.ac中使用curl-config和xml2-config?

我想在configure.ac中给定一个现有的Makefile(下面)设置include和lib路径.但我不知道如何在configure.ac中使用$(shell XYZ-config --libs)命令.

有人可以帮忙吗?谢谢!!

# --------------------------------------------------------------------------
# Acquire configuration information for libraries that libs3 depends upon

ifndef CURL_LIBS
    CURL_LIBS := $(shell curl-config --libs)
endif

ifndef CURL_CFLAGS
    CURL_CFLAGS := $(shell curl-config --cflags)
endif

ifndef LIBXML2_LIBS
    LIBXML2_LIBS := $(shell xml2-config --libs)
endif

ifndef LIBXML2_CFLAGS
    LIBXML2_CFLAGS := $(shell xml2-config --cflags)
endif
Run Code Online (Sandbox Code Playgroud)

autoconf

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

标签 统计

autoconf ×1

awk ×1

command ×1

sed ×1