LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-08-2010, 10:30 AM   #1
bluegospel
Member
 
Registered: Jan 2010
Distribution: centOS
Posts: 404

Rep: Reputation: 53
Question Info on the pipe command (|)


This thread primarily serves to obtain & collect quick answers to simple questions for Linux newbies. Feel free to post your own questions. But please be courteous--when your dialogue expands to a discussion, and warrants its own thread, please exit to a new thread. This is intended for quick questions with quick responses. Please segment new questions with "---------- " (ten or so hyphens)
Thank you.

----------
First question: what's the "|" usually do on the command line? For example, I'm using Slackware. damgar referenced the following command:

cat /var/log/Xorg.0.log | less

Does Linux or cat interpret the "|"? How is is this command line interpreted, especially, the "|"?

Last edited by pixellany; 05-08-2010 at 11:05 AM.
 
Old 05-08-2010, 10:41 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,817

Rep: Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610
http://en.wikipedia.org/wiki/Pipeline_(Unix)
 
Old 05-08-2010, 10:47 AM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
What's wrong with one thread for one question?
 
Old 05-08-2010, 10:47 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,615
Blog Entries: 26

Rep: Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987
Hi,

What?

I'm curious as to how this will aid a newbie?

Confusion is probable with a thread construct of this type.

A newbie would be better off doing a search here on LQ.

Heck, 'man command' would be the facts or option(s) for a command.




Just a few links to aid you or a newbie better than a thread of this type;

Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Utimate Linux Newbie Guide
LinuxSelfHelp
Getting Started with Linux
Bash Reference Manual
Advanced Bash-Scripting Guide
Linux Home Networking
Virtualiation- Top 10


The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!
 
Old 05-08-2010, 11:04 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Indeed, one thread per question, please

Changing the title of this one
 
Old 05-08-2010, 12:20 PM   #6
bluegospel
Member
 
Registered: Jan 2010
Distribution: centOS
Posts: 404

Original Poster
Rep: Reputation: 53
Red face

Sorry, I thought this was a good idea. It just seemed better since my question should have a quick answer, with others like it to follow, to post one thread for such short Q & A dialogue, rather than numerous threads like it.
 
Old 05-08-2010, 12:27 PM   #7
brucehinrichs
Member
 
Registered: Mar 2008
Location: US
Distribution: Debian Sid; Sabayon, UbuntuStudio, Slackware-multilib 13.1, Peppermint Ice, CentOS
Posts: 575

Rep: Reputation: 67
^New moderator?
 
Old 05-08-2010, 12:40 PM   #8
bluegospel
Member
 
Registered: Jan 2010
Distribution: centOS
Posts: 404

Original Poster
Rep: Reputation: 53
Thanks AlucardZero. I know you all mean well.
 
Old 05-08-2010, 09:34 PM   #9
Bratmon
Member
 
Registered: Jul 2009
Location: 75.126.162.205:80
Distribution: Arch / Mint 17
Posts: 297
Blog Entries: 3

Rep: Reputation: 50
If it's simple enough to warrant a 1 post answer, it can be easily found on Google.
 
Old 05-09-2010, 07:48 AM   #10
bluegospel
Member
 
Registered: Jan 2010
Distribution: centOS
Posts: 404

Original Poster
Rep: Reputation: 53
You're right in principle, Bratmon, but you can't search google when you have no idea, as a newbie, that "|" is referred to as a "pipeline," which was made clear by AlucardZero & pixellany.
 
Old 05-09-2010, 07:33 PM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by bluegospel View Post
You're right in principle, Bratmon, but you can't search google when you have no idea, as a newbie, that "|" is referred to as a "pipeline," which was made clear by AlucardZero & pixellany.
I don't think Google does well when searching for special characters....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Why Linux Users Should Be Furious At BBC LXer Syndicated Linux News 4 01-14-2008 04:28 PM
Need IP addr from AT&T Fast Access jdtiede Linux - Wireless Networking 1 12-06-2007 05:32 PM
looking for fast, not fancy & functional desktop pl help! marlor Slackware 15 06-06-2004 08:11 PM


All times are GMT -5. The time now is 03:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration