file redirection for left and right carrot works