I am trying to redirect the stdout of a particular output to a txt file, however I would still like to view it in the console log
tail -f /var/log/kern.log | ./prsfwlog -f elfs/prs_log.elf | \
grep -E --line-buffered "RSSI|SNR" | sed -n -e 's/^.*RTS\/Grant //p'
this is the line that gets me the desired output I have tried a variety of redirects and tees and have not been successful
tee
?tee
is the logical answer. Perhaps you could show us what you did that didn't work.tee
is the proper answer but you can indeed usetail
but you will need totail
the command from either a different terminal or turn that one loose with&
and tail from there..