bash - Can't get wireshark -R working in unix shell -
i following wireshark command working in unix shell (bash).
tshark -i host $ip -r 'udp.port == $port'
for reason tshark command doesn't see value in $port in between single quotes, variable id $port, script fails.
any info appreciated.
single quotes stop environment variables being evaluated. change double quotes allow shell expand variable. see following shell expansion differences
myport=1234 echo '$myport' echo "$myport"
Comments
Post a Comment