This is the coursework, in Technical University Sofia, Bulgaria prof. Koshmarov, sorry but the link to the course is broken. And this is the condition:
Code:
1. If the value of x is 5, and you have been set a new value as such
x="expr $x + 10", What would be the value of x?
What would be the new value of the given variable if you had used single quotation marks and what should you do to obtain the same value in case of double quotation marks use?
2. Explain what would be the result of execution of the following command
$ `date`
3. In the command prompt set the following value of the variable x:
x='ls | more' или set x='ls | more' (C shell)
Can you execute $x? Why?
What is the difference between directory='pwd' and directory=`pwd`.
4. How can you interprete the command
set - *
within a command procedure?
5. If a given script is executed as foo -l -t bar[1-3], What would be the values of $# and $*? Will there be a difference if the options are combined?
6. Write a script that archives the files in the current directory not being modified in the last six months.
(Instruction: Use the commands find and tar or cpio.)
Just one of these helps me very much.
Thank you people!
Hi, in my case, I have a question for topics that are slightly dealt with in class, which I am investigating on my own but which are not directly related to the lessons.
Do I have to put the name of the school and others?
(I can't put the name of the professor because is against the school rules... (2 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
The problem i have would be printf("Average of %u values is %f.\n",n (n == 0) ? 0.0 : (double) sum / n); in the... (4 Replies)
Helping students is in line with the "community spirit" ethos of The UNIX and Linux Forums which aims to give free help and advice in order to support the personal and professional development of others.
We encourage students to think carefully about what they do, and do not, understand about... (0 Replies)
Homework Help:
On Posting Questions:
Any and all high school and undergraduate homework assignments or textbook style exercises for which you are seeking assistance are to be posted only in our Homework & Coursework Questions area--not in blogs, visitor messages, PMs, or the main technical... (0 Replies)