LinuxQuestions.org
Visit Jeremy's Blog.
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 10-14-2011, 01:06 AM   #1
shanky
Member
 
Registered: Aug 2011
Posts: 155

Rep: Reputation: Disabled
command line parse??


hiii
i am trying to modify a code i want to simulate,but i dont quite understand what this means CommandLine to parse command-line arguements ??
if someone can enlighten me on this subject..it would be of great help to me..
thanks..
 
Old 10-14-2011, 01:25 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
To parse means to break down to component parts. So parsing command-line arguments means to split apart the options and arguments.
 
Old 10-14-2011, 01:33 AM   #3
shanky
Member
 
Registered: Aug 2011
Posts: 155

Original Poster
Rep: Reputation: Disabled
and parsing is done by these two lines(in C++)??
" CommandLine cmd;
cmd.Parse (argc, argv);"
and where would i have to place them in my code??
 
Old 10-14-2011, 01:39 AM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
You place them in your code where you want to process the command arguments. There are many examples in Google for you to look at.
 
Old 10-14-2011, 01:45 AM   #5
shanky
Member
 
Registered: Aug 2011
Posts: 155

Original Poster
Rep: Reputation: Disabled
thank you !!
 
  


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
How to parse a line of text rkinch Linux - Newbie 19 05-01-2011 07:55 PM
parse error in /etc/sudoers near line 8 ?? your_shadow03 Linux - Newbie 2 05-13-2009 09:24 AM
Korn Shell Parse Something out of a Line xikspan Linux - Newbie 5 02-23-2009 02:01 PM
parse error in /etc/sudoers near line -1 RAFAL Linux - Newbie 2 11-10-2008 11:56 AM
How to use awk command to parse fields in a line johnsanty Programming 9 05-25-2006 10:56 PM


All times are GMT -5. The time now is 06:10 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