PDA

View Full Version : [ubuntu] Pipes in linux vs pipes in windows



gidra
May 1st, 2009, 03:21 PM
I'm doing my assignment about linux and here pops out this question : What is the difference with pipes under Linux compared to Windows pipes ?

I tried to google a litte but didn't find definite answers. Btw there also is these 2 commands : ls -al|grep 2003 , ls -al|sort -k 4,4| more . I can't figure out what the heck they're supposed to do.

Thanks for your help

kanikilu
May 1st, 2009, 03:31 PM
We're not really here to do homework, but I can point you to some resources:

http://www.tuxfiles.org/linuxhelp/cli.html

http://www.linuxcmd.org/

This one specifically has a section on piping and redirecting:

http://jucato.org/blog/ubuntu-classroom-command-line-basics/

Also, man is your friend - look up the man pages for commands you don't understand. You're not really going to learn anything if we just tell you what a command does. E.g.
man sort

Once you know what a pipe does in Linux, see what it does in Windows, and compare:

http://technet.microsoft.com/en-us/library/bb490982.aspx

*BTW, these links were found in 2 quick Google searches - obviously one can't know everything, so the trick is knowing where and how to find answers...

gidra
May 1st, 2009, 04:09 PM
Aye thanks, i'll read them through

Spiritous
May 1st, 2009, 04:11 PM
Isn't this cheating ;o?

Dougie187
May 1st, 2009, 04:14 PM
Lol, yes it sort of is cheating. I think it's even in the code of conduct to not post homework questions.

Niniel
May 1st, 2009, 04:17 PM
Knowing where to look for/ask for answers... that can't be cheating. :)

jhenager
May 1st, 2009, 04:28 PM
At least this wasn't comparing screensavers....

Piping in Windows owes it's roots to CPM, which was the foundation for the original DOS (which wasn't very original).

Piping in Linux is patterned after UNIX.

If you use my answer and get a D-, I deny all complicity.
If they would have had computers when I was in high school, my CTRL, C and V keys would have been completely worn out.

gidra
May 2nd, 2009, 06:36 PM
I don't think asking for help is a form of cheating. Anyways i managed to find my way through to solve the problems using the above links. thanks