Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unix command question 2

Status
Not open for further replies.

slok

Programmer
Jul 2, 1999
108
SG
this is actually an academic question

given following unix command:
(aa ; bb cc) | dd 'ee ff'\''gg' `hh ii || jj`

1. list each command
2. for each command, list the arguments
3. for each command, list the source of std input (eg. screen)
4. for each command, list the source of std output (eg. keyboard)
5. for each command, list the destination of std error output (eg. screen)
6. for each command, state whether the command will always be executed and if not, the circumstances which it will or will not be executed
7. for each command, list all commands that must be completed executing before the command you are considering can start executing
8. for each command, list all the other commands that could potentially run at the same time as the command you are considering

 
I would start by answering question 1.

commands are as follows:
aa, bb, dd, ee, hh, jj

cc is argument to bb

ee, ff, gg are all quoted as a string and is also an argument to ee

ii is an argument to ee

feel free to comment and discuss, once we agreed on question
1, I will post subsequent answers for discussions
 
Actually, ee isn't a command, its part of that crazy argument for dd. The quoting around ee is a single quote, not a backtick like in the hh || jj section.

cc is an argument for bb, but there are other arguments as well.

ii is an argument for hh, not ee.
 
sorry typos....
typing blindly there...

agreed with you...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top