When running the script, the output of the rsync commands are not being displayed on the screen. I guess this is because they are getting piped to egrep. Is there a way that I can both display the output of rsync and send it to egrep as well?
I thought about using the “tee” command but I think that this will only send the stdout of rsync to a file.
> When running the script, the output of the rsync commands are not being
> displayed on the screen. I guess this is because they are getting piped
> to egrep. Is there a way that I can both display the output of rsync and
> send it to egrep as well?
man tee, and if it is stderr that needs to be piped use 2| instead of |. man bash in that case.