之前:
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)
]
我想在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)