04-02-2013
A shell program is simply a collection of commands. And when the commands are put together, the desired result is achieved.
The #1 tells you the variable TEXT and the command to be used tr.
What have you tried, what examples of work can you share?
This User Gave Thanks to joeyg For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have the following output. I want to write a script to check for
1. waits > 0 on all rowsand Ratio > .0. if true then send email.
=========================
ROLLBACK SEGMENT CONTENTION
=========================
If any ratio is > .01 then more rollback segments are needed
NAME ... (1 Reply)
Discussion started by: jigarlakhani
1 Replies
2. UNIX for Dummies Questions & Answers
How to write a shell script file to read 5 numbers using a while loop. Finding the average, maximum and minumum for the numbers.
Any help would be great. (1 Reply)
Discussion started by: Chin
1 Replies
3. Shell Programming and Scripting
Hello ALL,
I am fresher in Unix . i need help to write small shell script . Please help me unix guru.
I am developing the internal site in my office . the data files are generated in one directory everyday .
I have to write shell script to sort those files and put it is internal site .
... (3 Replies)
Discussion started by: deepa20
3 Replies
4. AIX
Hi,
Please give me the detailed Differences between writing Unix Shell script and AIX Shell Scripts. Thanks in advance..... (0 Replies)
Discussion started by: haroonec
0 Replies
5. Shell Programming and Scripting
Hello. I'm trying to write a shell script that will take files that have .tar, .tar.gz, .tar.Z, .gz, .Z and .zip file extensions and uncompress and unarchive them. The script should be able to take multiple arguments. So far I can write a script using the case command that will do this but it will... (3 Replies)
Discussion started by: SeanWuzHere
3 Replies
6. Shell Programming and Scripting
Can anyone please help me in writing a shell script that would check if a particular user(xyz) has logged in, and if yes, the audit daemon needs to be started. When the user logs off the dameon needs to shutdown , and the report needs to be e-mailed to a set of users. (12 Replies)
Discussion started by: ggayathri
12 Replies
7. Shell Programming and Scripting
Hi
I have two files a.log and b.log . i need to append a.log and b.log so that at the end of first line in a.log i need the append the data of first line from b.log and end of the second line in a.log i need to append the data of second line from b.log and so on up to the end of the file
can... (3 Replies)
Discussion started by: lalu
3 Replies
8. Programming
Hi all,
I have an assignment from school to write a shell program in linux. the idea is to exercise fork() and execv() functions.. the shell program is supposed to be the master and every command that the user prints will run in a new process. we also need to try running the command in every... (1 Reply)
Discussion started by: r3vive
1 Replies
9. UNIX for Dummies Questions & Answers
Hi, I'm very new to this, so bear with me please.
I want to write a sh script (or if there's a better format please let me know) that allows me to, when I run it, print the date to a file (1.out) take 2 arguments (files a.fa and b.fa), run them with another program, outputting to 2.out, and then... (4 Replies)
Discussion started by: ShiGua
4 Replies
10. UNIX for Dummies Questions & Answers
Dear Team,
Below is the list of steps i need to perform manually as of now and completely new to shell scripting, could you help in writing a shell script to perform the below procedure?
1. Log in to primary DNS server
2. Check /etc/named.conf if zone is already created (grep –i... (2 Replies)
Discussion started by: VKIRUPHAKARAN
2 Replies
LEARN ABOUT PHP
cfingerd.text
CFINGERD.TEXT(5) Configurable Finger Daemon CFINGERD.TEXT(5)
NAME
cfingerd.text - cfingerd text rules
EXPLANATION
cfingerd offers different commands that can be placed in text files to display corresponding information. Each command used with cfingerd
in text files begins with a dollar-sign (or a "$"). This usually indicates to cfingerd that when it's displaying a file, it issues the
command given directly after that character and inserts its output.
If you want to display a raw "$" sign, simply put two "$" signs together, or "$$".
Text commands are only parsed if ALLOW_LINE_PARSING is enabled in /etc/cfingerd/cfingerd.conf(5). If it is disabled the text files will be
sent as is, complete with any single or double dollar signs they may contain.
TEXT COMMANDS
The following is a list of text commands and what they do. They are checked case insensitively.
$CENTER will display the entire contents of the line. This command must start at the beginning of the line. This is a very common com-
mand.
$DATE displays the current system date in the format of MM/DD/YY.
$TIME displays the current system time in the format HH:MM A/PM (timezone).
$IDENT displays the identity of the current person fingering your system.
$COMPILE_DATETIME displays the date and time of which the current issue of cfingerd was compiled on your system.
$VERSION displays the current version of cfingerd.
$EXEC executes the rest of the line as a system command and send the output to the fingering user. Pipes, parameters etc. are available.
The $EXEC command must be on a line by itself in order to function properly. The command is executed as nobody.nogroup if used in a system
file. If used in a user file (e.g. .plan) the command is executed as that particular user. cfingerd will fork() before executing the new
command and will drop all priviledges so this is safe.
This feature is only available if ALLOW_EXECUTION is enabled in cfingerd.conf. The program may prodeuce a maximum of 10MB of output.
CONTACTING
If you like the software, and you want to learn more about the software, or want to see a feature added to it that isn't already here, then
please write to cfingerd@infodrom.north.de. The project's webpage is at http://www.infodrom.north.de/cfingerd/ .
SEE ALSO
cfingerd(8), cfingerd.conf(5), finger(1), userlist(1), any of the included docs with the standard cfingerd distribution.
1.4.2 7 Aug 1999 CFINGERD.TEXT(5)