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.
Just use the 'PS' command with the option to list processes by user: PS -u john -f would list out the processes running as user 'john'. A shell script to do that could be: #!/bin/ksh for i in $(users) do PS -u $i -f done
The 'users' command should do that; you don't need to write a shell script to get that information in that format.
ls-lS | tail-1
A shell script starts with the definition of the interpreter to use. Usually when one says ``shell script'', one means bash script. So a good first line would be #!/bin/bash This says that the program located in the filesystem at /bin/bash should be executed with this script as its input. With a bash script, you can simply start typing a list of commands. Furthermore it is possible to use logic and control structures like if, else, for, while, etc etc. See http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html for a good starting guide.
cat FILE | awk 'gsub(/ /,"\n") gsub("\n","\n") {print}' | sort -ur
#!/bin/sh sed -e 's/\W\+/\n/g' | sort -u
The following simple shell command lists the contents of a directory (verbose), and redirects the output to 'newfile.txt': ls -l > newfile.txt See related links.
characters.
The common shell variables differ according to which shell you are talking about. In general, they control the shell environment behavior, terminal behavior, and other external things. You can get a list per shell by using the 'man' command with the shell name to list out the common variables used in that shell environment.
This list is endless, but may include this advice: don't become so invested in using a script to tell your story that your 'life' depends on it being sold/ produced/ becoming a major tent-pole summer movie blockbuster that makes millions. You will be disappointed.
Syntax for UML operation is: operation ::= [ visibility ] signature [ oper-properties ] Signature of the operation has optional parameter list and return specification. signature ::= name '(' [ parameter-list ] ')' [ return-spec ] Name is the name of the operation. Parameter-list is a list of parameters of the operation in the following format: parameter-list ::= parameter [ ',' parameter ]* parameter ::= [ direction ] parm-name ':' type-expression [ '[' multiplicity ']' ] [ '=' default ] [ parm-properties ] See details and examples in the provided link.