seq 1 2 99
A shell is a program that read commands from some input device, typically the keyboard, and displays results on some output device, typically the display. It manages the environment and executes other programs as needed.
A shell function will do nothing unless it is explicitly called by other code, typically in a shell script. A shell script is a runnable, executable process, which can call other shell scripts and/or functions. The question might be worded backwards - it is necessary to write shell functions for shell scripts when certain logical functionality is required to be performed multiple times. Consider a shell function equivalent to a program subroutine - they operate the same way.
yes
In Unix, with a C program you can run a quick function to do this. There is an example at:(link moved to link section)AnswerIn Solaris, you need to disconnect your program from your "terminal" ( scripts generally inherit the stdin, stdout, and stderr of your shell when you execute them ). For a shell program you can execute "nohup $program < /dev/null > /dev/null 2>&1 &". Or the shell program can redirect its own stdin, stdout, and stderr -- then you can execute "nohup $program &".
The 'users' command should do that; you don't need to write a shell script to get that information in that format.
seq 1 2 99
write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html
You don't say what you want to do with the permissions, but most shells have a 'test' command that can look at various permissions. Look at the 'man' command for the shell you are running in to see what tests are possible on files and directories. You can check to see if the target is a directory, or a file, and whether it has read, write, or execute/search permissions. Again, it varies by the shell environment.
We can not perform Shell Scripting in DOS, we can do Batch programing in DOS..
k
no thanks
in winxp del *.* /Q /S
A shell is a program that read commands from some input device, typically the keyboard, and displays results on some output device, typically the display. It manages the environment and executes other programs as needed.
see : Write_a_shell_program_using_the_if-the-else_to_test_whether_a_variable_name_is_a_directory_or_a_file
tr [:lower:] [:upper:] < /etc/passwd > somefile
kill the snail and clean it.wash the inside of the shell and preserve it then put it on display