View Single Post
  #2 (permalink)  
Old 01-Jul-2009, 18:42
ken_yap ken_yap is online now
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,222
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: Bash: Can stdout go to terminal and pipe?

Can't be done using bash redirections alone, you need a process to do the splitting.

Try:

Code:
cut -d, -f1 < MailingList | sort -u | tee /dev/stdout | wc -l
I corrected that common tendency which you exemplified, to start a pipe with cat from a file.
Reply With Quote