redirecting in the form of cmd < inputfile now works