12

Confused over results using "tee" in piped command

view full story
linux-howto

http://www.unix.com – First post here, so hopefully all guidelines are followed, and thanks in advance for any replies. I'm working on a shell script(BASH) that processes a csv file and performs various tasks with the data. All is well, except I want to use 'tee' to send output from 'wc' to a file as well as pipe it to 'cut'. What I'm trying to accomplish is a) tally the record count from a list of files, and b) send the details of 'wc' to an output file. This code successfully tallies the record count, but obviously isn't sending the output from 'wc' to an output file: Code: #!/bin/bash    (HowTos)