LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-04-2006, 02:29 AM   #1
cn_chopsticks
LQ Newbie
 
Registered: May 2005
Location: Nanjing, China
Posts: 17

Rep: Reputation: 0
a confuse in 'sed'


sed '/int zz/q' > sample.c
What does this command mean?
Thanks!!
 
Old 03-04-2006, 02:44 AM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
it writes the standard in to sample.c, including all lines until the first that contains "int zz". Look at the sed manual for "address ranges" and the q command.
 
Old 03-04-2006, 07:57 AM   #3
cn_chopsticks
LQ Newbie
 
Registered: May 2005
Location: Nanjing, China
Posts: 17

Original Poster
Rep: Reputation: 0
Thank you very much!!
 
  


Reply



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
confuse on rc.d startup ziggie216 Slackware 2 11-23-2005 02:18 PM
confuse on Openmosix??? bbmak Linux - Software 3 10-12-2004 09:14 PM
Slackware partition confuse johncsl82 Linux - Newbie 2 07-04-2004 08:21 AM
glibc configuration confuse taoweijia Linux - General 15 06-09-2004 10:49 AM
Insert character into a line with sed? & variables in sed? jago25_98 Programming 5 03-11-2004 06:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:13 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
Open Source Consulting | Domain Registration