I have a script that outputs text to stdout. I want to see all this output in my terminal, and at the same time I want to filter some lines and save them in a file. Example: $ myscript Line A Line B ...
There is a bash script which prints some logs and allows some arguments. The script prints the logs to STDOUT. Let's say the script's name is AAA.sh I'd also like to make the script to print the logs ...
Possible Duplicate: Is there a way in bash to redirect output and still have it go to stdout? Let's say I do: ps -ef | grep httpd to see if apache is running or not, but I also want to ...