Play 2的大括号具有特殊含义,如果它们在网址中使用 喜欢
#!/bin/bash
input1="/home/seconion/Desktop/DatasetAnalyse/BYOD/alertTimeConverted.csv"
input2="/home/seconion/Desktop/DatasetAnalyse/BYOD/gt_byodTimeConverted.csv"
while IFS=',' read -r timestamp1 msg1 proto1 srcIP1 srcPort1 dstIP1 dstPort1
do
echo "next alert"
while IFS=',' read -r timestamp21 timestamp22 duration2 proto2 srcIP2 srcPort2 dstIP2 dstPort2 iflags2 uflags2 riflags2 ruflags2 pkt2 rpkt2 oct2 roct2 app2 entropy2 rentropy2 label2 category12 category22 comments2
do
alertTime=$(date -d "$timestamp1" +"%H%M%S%N")
streamTimeStart=$(date -d "$timestamp21" +"%H%M%S%N")
streamTimeEnd=$(date -d "$timestamp22" +"%H%M%S%N")
if [ $streamTimeStart -lt $alertTime ] && [ $alertTime -lt $streamTimeEnd ];
then echo "true"
fi
done < "$input2"
done < "$input1"
然后框架返回错误:
http://domain.com/?utm={utm}
框架是否有办法,如何预处理url并转义那些
大括号,或至少拦截错误以发送有关它的通知?