Want this question answered?
You don't need a shell script for that; use either 'whoami' or 'id'
You don't need a shell script to do this - just use the 'tail' command.
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.
write ashell script to add awo matrix using array.
#!/bin/sh PS -a
We can not perform Shell Scripting in DOS, we can do Batch programing in DOS..
You don't need a shell script to do that. Since you don't say what 10 shell variables you want, you can list them all by using the 'set' command to list all known in-use shell variables in the current session.
use python, shell is stupid
You don't need a shell script to do this; use the 'grep' command with the '-c' option to count the number of occurrences of some pattern.
for i in *.cdomv $i $i.olddone
seq 1 2 99
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.