我正在Solaris上编写一个Bash Shell脚本,试图提取日志匹配,CSIS_Log_D [YYYYMMDD] T [hhmmss] .tms,并将它们压缩。
我在尝试仅提取与文件模式匹配的日志时遇到问题。
mkdir $destinationPath/archive
# Locate logs match file pattern, move them to another place.
cd $sourcePath
for f in CSIS_Log_D*T*.tms
do
cp $f $destinationPath/archive
done
zip -r "${PASTDATEforARCHIVE}TO${CURRDATEforARCHIVE}.zip" "$destinationPath/archive"
# Verify that zip has been created.
if [ -f "${PASTDATEforARCHIVE}TO${CURRDATEforARCHIVE}.zip" ]
then
rm -rf $destinationPath/archive
else
printf "Zip creation failed '%s'\n"
fi
答案 0 :(得分:1)
您的maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
compile 'com.mobsandgeeks:android-saripaar:2.0-SNAPSHOT'
命令缺少来源。
cp