#I used to have this, but I don't want to write to the disk
#
pcap="somefile.pcap"
tcpdump -n -r $pcap > all.txt
while read line; do
ARRAY[$c]="$line"
c=$((c+1))
done < all.txt
以下失敗。
在Python IDLE Shell中,似乎我不能使用複合條件表達式和while循環。我也在括號內嘗試過。以這兩個示例爲例: k=0
m=0
while k<10 & m<10:
print k
k +=1
m+=1
這並不評估第二個條件。但如果我寫 while k<10:
print k
k+=1
這是行不通的。有沒有一種方法可以用「