Sponsored Content
Homework and Emergencies Homework & Coursework Questions Can anybody help me with coursework Post 302390169 by astralito on Wednesday 27th of January 2010 05:14:32 AM
Old 01-27-2010
Can anybody help me with coursework

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!
 

4 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

Rules for Homework & Coursework Questions Forum

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)
Discussion started by: Neo
0 Replies

2. Homework & Coursework Questions

Community Spirit and Ethos on Homework & Coursework

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)
Discussion started by: Neo
0 Replies

3. Homework & Coursework Questions

Coursework for to while

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)
Discussion started by: mgyeah
4 Replies

4. Post Here to Contact Site Administrators and Moderators

About Rules for Homework & Coursework Questions Forum

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)
Discussion started by: Naky
2 Replies
pwd(1)							      General Commands Manual							    pwd(1)

NAME
pwd - Displays the pathname of the current working directory SYNOPSIS
pwd STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: pwd: XCU5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. OPTIONS
None OPERANDS
None DESCRIPTION
The pwd command writes to standard output the full pathname of your current working directory. All directories are separated by a / (slash). The first / represents the root directory and the last directory named is your current working directory. EXIT STATUS
The following exit values are returned: Successful completion. An error occurred. ENVIRONMENT VARIABLES
The following environment variables affect the execution of pwd: Provides a default value for the internationalization variables that are unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization vari- ables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string value, overrides the values of all the other internationalization variables. Determines the locale for the format and contents of diagnostic mes- sages written to standard error. Determines the location of message catalogues for the processing of LC_MESSAGES. SEE ALSO
Commands: cd(1), csh(1), ksh(1), Bourne shell sh(1b), POSIX shell sh(1p) Functions: stat(2), getcwd(3) Standards: standards(5) pwd(1)
All times are GMT -4. The time now is 05:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy