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

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -