I'm using a shell script to do HCIDUMP and using some filters to write to a file. With the following command, the destination file is empty.
hcidump -a l2cap | grep -v -e 'CAP' -e 'HCI' > onlystringsrecieved.txt
Using the same command without redirecting the output to a file, it works fine at the LXTerminal command prompt.
hcidump -a l2cap | grep -v -e 'CAP' -e 'HCI'