i am trying to execute the tshark command to find packets of a particular IP address in bash command as follows::
while read client
do
echo "Client Adrees:" $client1
cmd="tshark -R \"(ip.src == 10.129.5.192)\" -r 12clients.pcap"
echo $cmd
done < input
while executing script the error is as follows::
Client Adrees: 10.129.26.154
tshark -R "(ip.src == 10.129.5.192)" -r 12clients.pcap
tshark: Read filters were specified both with "-R" and with additional command-line arguments
thanks in advance... :D