answersLogoWhite

0


Best Answer

Actually, just about anything you want to do. Depends on the job function requirements.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What job functions could you script in a UNIX or DOS shell script?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a command in Unix?

Essentially, a command in Unix is a program that you execute for a certain purpose. It could be anything, from a shell script, to copying or deleting files, etc.


Write a shell script which deletes all line containing the word unix in the filesn suppiled as argument to this shell script?

# SS29 # Script to delete all lines containing the word 'unix' from files supplied as arguments # Usage: SS29 file1 file2 file3 ... if [$# -lt 2] then echo Insufficient arguments exit fi for file do grep -v unix $file>/temp/$file cp /temp/$file $file done


What is the Purpose of exit command in Shell of Unix?

The 'exit' command allows you to stop a running shell script at any point and to return a "status" value back to whomever called the shell script. This is a very common practice with shell scripts; sometimes you want to stop the script before it gets to the end of the shell script (for various logic reasons). The 'exit' command also allows you to give a status that any other calling process can use to determine if the shell script ended successfully or not.


What file extensions are used to identify command shell scripts?

For windows, you might use .cmd, .bat as common file extensions. Unix doesn't use file extensions as associations, so no file extension needs to be used in the Unix environment. A shell script in Unix is simply a text file with any name that is readable and executable. However, file extensions are typically used in Unix as a documentation aid that states that the file is a shell script. Common extensions are .sh, .csh, .ksh, .tcsh, .zsh, etc.


How do you change permissions on a shell script in unix?

Use the 'chmod' command to change permissions on any file. Note: you have to be the owner (or the superuser) to do this.


What are the two c shell script files that are automatically executed when logging into a unix system when your default login shell is set to the c shell?

The local user files that are read are the .login and the .cshrc files


What is the trap command on Unix for?

The trap command is used in a shell script to intercept certain types of software signals; usually it is used to do a "graceful" cleanup when the shell program is interrupted.


What is the default Unix shell?

There is no "default" Unix shell. Different Unix vendors shipped different shells.


Unix script to calculate average of n numbers given by user?

You really don't want to do this in a shell script - scripting languages in Unix typically do not handle or work with floating values, only integers. A better way would be to write a program to do this that works under Unix, such as a 'C" program. See the related link for an example


What is the procedure of execute a script in shell in ubantu?

For any Unix or Linux based operating system, make the text file readable and executable and then invoke (call) it by the file name, which will execute the script.


How do you write shell scripting in UNIX?

A shell script is nothing more than a readable and executable ASCII text file. In this file you put all of the commands that you want to execute, in sequence. The name of the file can be anything you like. Any text editor (VI, VIM, pico, etc) can create a shell script file In addition, shell script files have the ability to detect logic, and are programmable. Just think about what tasks you want to perform and their order, and put it into a file, and there you have a shell script.


How do you read from file in unix shell script?

You will have to be more specific about what you intend to do. In general, a shell script by itself does not read file information and then do something with it. There may be calls to other scripting languages such as awk, perl, python, etc., that will actually read the information and process the data.