09-17-2007
getting totals
For any command that returns a number of lines EG 'grep INFO' you can cound the number of lines with wc -l
EG
grep INFO | wc -l
this will return the number of lines matching INFO
8 More Discussions You Might Find Interesting
1. What is on Your Mind?
Welcome to "The trouble with...." with your host, ZazzyBob.
Todays offering - "The trouble with letting other people host your website"
I use a certain web hosting service, who shall of course remain nameless here.
They are running PHP 4.3.10
I decide to write a script to test their PHP... (6 Replies)
Discussion started by: zazzybob
6 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
having read lots of posts about SU I don't quiet understand this :
I'm doing regular backups of my database (u betta do) and therefore use su - username -c "sqlscript special data_base" in a unixscript which is even using cron. (yep!)
Now I need some other script, still with this... (4 Replies)
Discussion started by: nulnul7
4 Replies
3. UNIX for Dummies Questions & Answers
Hello guys.
Well, on this exercise i need the average "chargeAmount" per hour (for each hour).
with this code :
cat getusagesummarywrongmatch | grep -iv MOU2GRTObject | cut -d'|' -f4,14 | grep -i chargeamount | cut -d' ' -f2
http://img227.imageshack.us/img227/5889/65969235do0.jpg
i got... (2 Replies)
Discussion started by: EnioMarques
2 Replies
4. Shell Programming and Scripting
Hi, 'm trying to do an exercicise, and one part is:
ls -l $1 | awk '
BEGIN {
max = $5;
}
{
if ($5 > max){
max = $5;
}
}
END {
print "Tamanio mayor fichero = " max; }'
# Imprimimos ahora el menor tamaņo de fichero
ls -l $1 | awk '... (4 Replies)
Discussion started by: Phass
4 Replies
5. Homework & Coursework Questions
you are to write a program which will read in a tax rate (as a percentage) and the prices of 5 items. the program is to calculate the total price, before tax, of the items and then the tax payable on those items, and then the total amount due. the tax payable is computed by appliying the tax rate... (1 Reply)
Discussion started by: bunkercrazy
1 Replies
6. Shell Programming and Scripting
hello everyone!:)
I have an exercise which I think is difficult for beginner like me. Here is the exercise
Create a shell script, which takes a directory as command line argument.
Script displays ten first lines from every text file in that directory. After
displaying the lines from the... (1 Reply)
Discussion started by: googlevn
1 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I am learning unix. I want to practice few small excercises. Please suggest me some goor URL to practice.
Thanks in advance. (1 Reply)
Discussion started by: stew
1 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a shell script program that will input a name and a mark between 0 and 100. The program then displays the... (9 Replies)
Discussion started by: UniverseCloud
9 Replies
rpcbind(1M) rpcbind(1M)
NAME
rpcbind - universal addresses to RPC program number mapper
SYNOPSIS
DESCRIPTION
is a server that converts RPC program numbers into universal addresses. It must be running on the host to be able to make RPC calls on a
server on that machine.
When an RPC service is started, it tells the address at which it is listening, and the RPC program numbers it is prepared to serve. When a
client wishes to make an RPC call to a given program number, it first contacts on the server machine to determine the address where RPC
requests should be sent.
should be started before any other RPC service. Normally, standard RPC servers are started by port monitors, so must be started before
port monitors are invoked.
When is started, it checks that certain name-to-address translation calls function correctly. If they fail, the network configuration
databases may be corrupt. Since RPC services cannot function correctly in this situation, reports the condition and terminates.
can only be started by the super-user.
Options
recognizes the following options:
Run in debug mode.
In this mode, will not fork when it starts, will print additional information during operation, and will abort on certain
errors. With this option, the name-to-address translation consistency checks are shown in detail.
Do a warm start.
If aborts or terminates on or it will write the current list of registered services to and Starting with the option
instructs it to look for these files and start operation with the registrations found in them. This allows to resume
operation without requiring all RPC services to be restarted.
WARNINGS
Terminating with will prevent the warm-start files from being written.
All RPC servers must be restarted if the following occurs: crashes (or is killed with and is unable to to write the warm-start files; is
started without the option after a graceful termination; or, the warm-start files are not found by
AUTHOR
was developed by Sun Microsystems, Inc.
FILES
SEE ALSO
rpcinfo(1M), rpcbind(3N).
rpcbind(1M)