"; ?>


Go Back   Forums > Desktop O/S Help > Linux Help
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-19-2007, 10:52 PM
Junior Member
 
Join Date: Sep 2007
Posts: 13
Default Command Line: Basics of Pipes and Redirection

One of the reasons a lot of Linux stuff hasn't moved into the GUI world is because of the sheer power of its command line. Two of the pillars of this power are pipes and redirection, which I outline here.

Pipes are used to connect the output of one command to the input of another using the "|" sign (shift + "\"). Probably the most frequent use of this is to feed the grep command, which filters input based on a search pattern. For example:

Code:
ls /etc | grep apache
In this case, the ls command lists all of the files in the /etc directory and pipes this list to the grep command, which makes it so that only lines containing the text string "apache" are actually shown.

Another typical use of pipes would be:

Code:
ls /usr/bin | less
This would make a scrollable list of files in the /usr/bin folder.

Redirection can be easily confused with pipes at first, but they're very different. Using the ">" sign much like the "|" above, they take the output of one command and output it to a file. This can be useful for taking notes, logging, etc. For example, to make a file with a list of every occurrence of the word "monkey" in a file called "MonkeyStory.txt":

Code:
grep monkey MonkeyStory.txt > listing_file.txt
What if we already have a file called "listing_file.txt" and we just want to add to it? We append using a double ">" (">>"):

Code:
grep monkey MonkeyStory.txt >> listing_file.txt
The appending redirector is especially useful for logging.
Reply With Quote
  #2 (permalink)  
Old 07-14-2008, 10:37 PM
Senior Member
 
Join Date: Jun 2008
Posts: 115
Angry power or capacity

Everyone has his inherent ability( power or capacity?) which is easily concealed by habbits, blurred by time, and eroded by laziness________We assure you of our best wow gold service at all time. Don? be irresolute! Just place your order to buy Cheap Wwow gold here then your desired wow gold will be in your mail box in wow game. wow gold.In order to provide a quickly and easy way of wow gold delivery
__________________
Buy cheap wow gold on www.wowgold1000.com
Reply With Quote
  #4 (permalink)  
Old 07-16-2008, 01:51 AM
Junior Member
 
Join Date: May 2008
Posts: 5
Exclamation Thanks for you!

Thanks! All prices on our professional runescape online store are unbeatable.Our service,something as runescape gold,runescape power leveling,runescape items,are waiting for you.So start your journey on runescape daddy.comThe delivery time for runescape gold(runescape money) and runescape items is about 5 minutes to 24 hours. At most situations,we will meet you in west bank of city. After you pay, please contact us with our livehelp system ASAP, then to make a fixed time for the face to face trade.Runescape accounts
Reply With Quote
  #5 (permalink)  
Old 07-16-2008, 05:30 AM
Member
 
Join Date: Jun 2008
Posts: 31
Smile Have a romantic rencounter with the IDee jewelry!

Luxurious, romantic, adream, expectant……as a eternal souvenir, Idee will realize all your beautiful dreams.The romantic European designs, matched with the sparkling quartz, pearl, shell and so on, created a unique style of individuality and fashion.From the earring to the necklace, from the ring to the bracelet, the glittering IDee jewelry are all designed for you, the fashion-front women. How can you resist it!The famous French designer Jean-Sébastien have designed the fashion and avant-garde IDee jewelry using the succinct and romantic western design element. Inviting allurement flashes immediately in front of the chest , by the ear, over the fingers…… Have been weary of the common clothes already? It’s just the time to sparkle. Why not have a rencounter with the IDee jewelry, now? http://hiphotos.baidu.com/ideeworld/...38d52af1ae.jpgPlease view our website atIDee首饰批发,首饰加盟,银饰加盟,品牌首饰,星座首饰 to get a better idea of our products. We will be happy to give you a quotation upon receipt of your detailed requirements.
Reply With Quote
  #6 (permalink)  
Old 07-16-2008, 11:32 PM
Junior Member
 
Join Date: Jul 2008
Posts: 11
Thumbs down Tell you two good Web site

Tell you two good Web site, anyone can find here sex, is a AdultFriendFinder, Lesbian is another.Today, burnt drugs include: 1,254 grams of heroin, 8,574 grams of Ketamine, 4,005 grams of methamphetamine, Ma Ancient 1,168 grams (12530), ecstasy, 95 grams (411), 36 grams of marijuana, 35 grams of caffeine, together 15,167 grams. The Public Security Bureau in charge of urban leadership, UNODC head, urban representatives of the Public Security Bureau police.
Reply With Quote
  #7 (permalink)  
Old 07-17-2008, 02:30 AM
Junior Member
 
Join Date: May 2008
Posts: 21
Exclamation Do you fear the force of the wind

Do you fear the force of the wind,The slash of the rain? Go face them and fight them,Be savage again.Go hungry and cold like the wolf, Go wade like the crane:The palms of your hands will thicken,The skin of your cheek will tan,You'll grow ragged and weary and swarthy,But you'll walk like a man!let go深圳市鹏基(货运)物流有限公司,专业深圳铁路快运、铁路搬家 、中铁快运深圳中铁快运、深圳铁路搬家、中铁搬家、深圳中铁搬家、中铁托运、深圳中铁托运、中铁货运深圳中铁货运、中铁电器托运、铁路行李托运、深圳铁路行李托运、长途搬家、深圳长途搬家、铁路机器设备托运
__________________
空压机
Reply With Quote
  #8 (permalink)  
Old 07-21-2008, 08:02 PM
Senior Member
 
Join Date: May 2008
Posts: 271
Post 电磁流量计 once more---(二)205541

你问我世界上有几种女孩,我的回答是两种——我爱的和我不爱的。这是某个电磁流量计夏天我给威的回答。 电磁流量计 (二) 我向来不喜欢得到不属于自己的东西,我总以为自电磁铁己应该是在体校、在篮球场度过自己的少年,而不是在这所市重点。虽然父母、教电动阀练说我靠的是一技之长,但我很清楚我打篮球根本不是为了进市重点,更清楚的是电焊机既然进了市重点,我的目标将不再是NBA而是某所重点大学。我嘲笑自己,竟然电话光端机为了父母的理想而活。 教导主任将我和另一个男生带进新的教室。班电话光端机主任是个黑瘦的中年男人,教导主任凑到他耳边说了几句,看来这班主任事先并不电火花知道我们会来他班。教导主任走后,他面无表情打量的我们几眼,将我们安排在最电火花检测仪角落的位置,眼神中满是轻蔑和不耐烦。“shit!”那男生显然比我更不满班电加热反应釜主任的臭架子,一脚踢开挤在一块儿的桌椅板凳。他就是威,我的铁哥们,同样是电箱篮球加分进的市重点。在球场上他绝对不算高个子,留着长长的鬓角,微卷的、染电子传真成棕色头发,乍一看简直是猫王。他是后卫,我是前锋。有时他也戏虞:“你是三电子机票井,我是铁男。” 无数的不及格,无数人的告状,无数老师的“盛情电子机票查询邀请”, 就是我们在学校的全部。这个学校只有篮球场是属于我们的。一学期结束电子机票预定,我们面临的是换班。当然我和威从没为此担心,反正我们的学习生活早就被别人电子罗盘操控了,何必烦心?我们高兴的是终于可以不用再看那张好象我们欠他多还他少的电子罗盘黑瘦脸。 也许是因为第一年我们出了名的嚣张,在新的班级,我们不电子显示屏再是坐在角落,而是坐在一群乖学生的中间。老师有时实在很蠢,因为这样一来,电子政务我和威上课更用不着听了,因为我们的考试成绩以惊人的趋势直线上升。雕塑 又是一次考试,一如既往,下课铃一响,我和威便开始为选择题奋斗。我回过调查公司头,后面女生的字又细又淡,真搞不懂她们怎么连写字的力气也没有。我索性将她调节阀的卷子抽了过来,那女生象被吓了一跳,想说什么又没说。我瞄了瞄她的名字,“东莞叉车吟”。来了这个班这么久,全班人的名字我都没记住几个。“谢啦,吟。”老师走短信群发出教室,我回过头向那女生道谢,毕竟刚才抢人家卷子不太礼貌。她只是淡淡看了颚式破碎机我一眼,没有说什么。我忽然产生了一种很奇怪的感觉,她忧郁的眼神,她细致的儿童游乐设施眉毛,她清高、深邃的表情,使我忍不住想盯着她不放。事后,威说我象犯了花痴耳聋。 我并不是个喜欢调戏良家妇女的人,真的,绝对不是。只是这个女耳鸣生很特别,使我时不时的想去了解她。这中感觉很难解释,几乎完全不了解的人竟耳鸣然会使我产生这种念头。我开始怀疑威所说的,我象是犯了花痴。法律翻译
__________________
wow gold
Reply With Quote
  #10 (permalink)  
Old 07-22-2008, 11:27 PM
Senior Member
 
Join Date: May 2008
Posts: 271
Smile 翻译公司 第一次的亲密接触(十四)205541

  我开始打量著坐在我面前的这位美丽的女孩。  美丽其实是一种很含糊的形容词因为美丽是有 很多种的。 翻译公司 也许像冷若冰霜的小龙女;也许像清新脱俗的王语嫣。  也许像天真无邪的香香公主;也许像刁蛮任性的赵敏 。翻译公司  也许像聪慧狡黠的黄蓉;也许像情深义重的任盈盈。  但她都不像。  幸好她都不像,所以 她不是小说翻译设备租赁中的人物。  她属於现实的生活。  第一眼看到她时,我就被她的脸孔勾去了两魂,被她的声音 夺走了六魄。反应釜  只剩下一魂一魄的我,根本来不及看清楚她身材的高矮胖瘦。  如今我终於可以仔细地端详她 的一切。防腐涂料  她很瘦,然而并非是弱不禁风的那种。  她的肤色很白由於我没看过雪,因此也不敢用“雪白"这种形容词 。防火墙  但因为她穿著一身咖啡色,於是让我联想到鲜奶油。  所以她就像是一杯香浓的咖啡。  她 现在坐防火墙著,我无法判断她的身高。  不过刚刚在点餐时,我看著她的眼睛,视线的俯角约20度我们六只眼睛(我有四 只)的距防雷工程离约20公分所以我和她身高的差异约=20*tan20度=7.3. 我171 因此她约164 至於她的头发,超过肩膀1房地产经纪人0公分,虽还不到腰,但也算是很长了。  等等她不是说头发已经挑染成咖啡色了为何还是乌黑亮丽 ?  「你放大器的头发很黑ㄚ!那里有挑染成咖啡色的呢?」  「痞子挑染也者,挑几根头发来染一染是也因为我觉得好玩所以 我自己染飞机查询了几根头发来意思意思你觉得好看吗?」  她把头发轻轻拨到胸前,然後指给我看的确是“万黑丛中一点咖啡" 。飞机票价查询  而且美女毕竟是美女,连随手拨弄头发的仪态也是非常撩人。  「当然好看你即使理光头,也是一样明艳动 人」飞机票价格  「呵呵痞子别太夸奖我我会骄傲的」  我又听见了她的笑声。  古人常用“黄莺出谷"和” 乳燕归飞机票价格查询巢"来形容声音的甜美。  但这两种鸟叫声我都没听过,所以用来形容她的声音是不科学的。   还是脆而不腻非淋的麦当劳薯条比较贴切。  她的笑声,就像沾了蕃茄酱的薯条,清脆中带点酸甜。  「你为何会 偏爱咖啡色呢非淋?」  「因为我很喜欢喝咖啡ㄚ!我最爱喝的就是曼巴咖啡」  「我也常常喝咖啡但我不懂“曼 巴"是什麽?非淋菌性尿道炎」  「曼巴就是曼特宁咖啡加巴西咖啡嘛!笨痞子」  「哦原来如此那蓝山咖啡加巴西咖啡不就 叫做“蓝巴"肺癌?」  「呵呵痞子你在美女面前也敢这麽痞我不禁要赞赏你的勇气」  「你穿著一身咖啡色不会 觉得很奇怪吗肺癌?」  这是我最大的疑问。如果不知道谜底,我一定会睡不著觉。  总不至於爱喝咖啡就得穿一 身咖啡色吧!肺癌?  如果照这种逻辑,那爱喝西瓜汁就得一身红;爱喝绿茶就得一身绿那爱喝汽水的,不就什麽颜色的衣服都不 用穿了?肺癌的治疗  「痞子你听过“咖啡哲学"吧!?」  「这是一家连锁咖啡店我当然听过」  「此哲学非彼 哲学肺癌晚期也我的穿著就是一套咖啡哲学阁下想听吗?」  「有有话请讲在下愿闻其详」  差点忘了对方是 个美女,赶紧肺癌晚期的症状把“有屁快放"吃到肚子里  「即使全是咖啡也会因烘焙技巧和香、甘、醇、苦、酸的口感而有差异我的鞋袜颜 色很深,肺癌晚期的治疗像是重度烘焙的炭烧咖啡焦、苦不带酸小喇叭裤颜色稍浅,像是风味独特的摩卡咖啡酸味较强毛线衣的颜色更浅, 像是柔顺细腻的蓝肺癌晚期症状山咖啡香醇精致而我背包的颜色内深外浅,并点缀著装饰品,则像是Cappuccino咖啡表面浮上新鲜牛奶 ,并撒上迷人的肉肺癌晚期治疗桂粉既甘醇甜美却又浓郁强烈」  我愣了半晌,说不出话来。  我不禁再次打量著坐在我面前的 这位美丽的女肺癌症状 孩。  在今晚以前,她只不过是网路上的一个游魂而已。只有ID,没有血肉。  如今她却活生 生地坐在我面肺癌治疗前,跟我说话,对我微笑,揭我疮疤。  直到此刻,我才有作梦的感觉。  或者应该说是打从在 麦当劳门口见肺癌治疗到她时,我就已经在作梦了。  只是现在我才发觉是在梦境里。  to be continued 肺癌治疗方法
__________________
wow gold
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Line: Network Tools Robi Linux Help 50 Yesterday 11:25 PM
Windows Command Line - Find the Info You Want Nathan Windows XP Help 44 Yesterday 01:30 PM
Command Line: Handy Commands Nathan Linux Help 50 09-05-2008 07:02 PM


All times are GMT -8. The time now is 05:41 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0