It is possible to redirect the output of one program to the input of another program within Unix operating systems.
cat *.txt | sort | uniq > result-file
Is it possible to do this with other operating systems (like Windows)?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The most common operating systems have notions of standard input, standard output and pipes. The command-line syntax, however, depends on the shell you are using.
You can get Bash for Windows with Cygwin.
You can also use pipes on Windows with plain old CMD.exe. The syntax is very similar, using
>to write to files,>>to append,<to read from files and|for piping between processes. You can read more about it here: http://ss64.com/nt/syntax-redirection.htmlIf you are the adventurous type that uses PowerShell, then you can read about piping between programs here: http://technet.microsoft.com/en-us/library/ee176927.aspx