09-09-2016
Gang, this does put things in a better light in my brain...
Don... yes, I am using KSH...
But seeing this same problem solved in multiple ways helps me grasp the entire processing concept.
And now I do have a running process that's cranking out and summing up time numbers. But if I am stuck in another shell or environment, well, now I have these other options also.
Thank you very much for your time gang!
Bruce
10 More Discussions You Might Find Interesting
1. AIX
Is there such location or command to know how many times did you reboot your server in that particular day?in AIX. (3 Replies)
Discussion started by: kenshinhimura
3 Replies
2. UNIX for Dummies Questions & Answers
Hello everyone and let me start off by thanking anyone who can help with this.
I work for a company that uses Unix as one of their servers. I'm not at all familar with Unix beyond logging after I restart the server:rolleyes: I'm looking for some command that will bring me up a list of current... (3 Replies)
Discussion started by: disgracedsaint
3 Replies
3. Shell Programming and Scripting
Hi all,
I have a list of times:
...10:02
15:34
20:05
01:51
06:55
09:00
05:52...
That's just part of the list (its huge).
How do I go about selecting certain times, e.g. just between 23:00 and 05:00 ?? (4 Replies)
Discussion started by: mikejreading
4 Replies
4. Shell Programming and Scripting
i have a list of numbers like this;
124
235
764
782
765
451
983
909
...
and i want to make a sum with the first 3 of them then the next 3 and so on.
124+235+764=1123
782+765+451=1998
...
some ideas? (4 Replies)
Discussion started by: Tártaro
4 Replies
5. Shell Programming and Scripting
Hi Experts,
I want to add 20% to the values and get an output , please advise with script , awk etc,
# cat datafile.txt
50.4053
278.383
258.164
198.743
4657.66
12.7441
646.787
1.56836
23.2969
191.805
53.3096
1.12988
999.058
4100.29 (2 Replies)
Discussion started by: rveri
2 Replies
6. Shell Programming and Scripting
If I had a word list with a large amount of words in it, how would I (using a unix command) add, say, 123 to the end of each word?
EDIT: The word list is stored in a large text file. I need a command that applies the ending to each word in the file and saves the result in a new text file. (7 Replies)
Discussion started by: evillion
7 Replies
7. Programming
Hello,
i'm trying to implement the times() function and i'm programming in C.
I'm using the "struct tms" structure which consists of the fields:
The tms_utime structure member is the CPU time charged for the execution of user instructions of the calling process.
The tms_stime structure... (1 Reply)
Discussion started by: g_p
1 Replies
8. Shell Programming and Scripting
75
103
131
133
138
183
197
221
232
234
248
256
286
342
368
389
463
499
524
538 (5 Replies)
Discussion started by: chrisjorg
5 Replies
9. Solaris
I'm having some troubles setting an instance of postgreSQL to automatically start upon system boot. I have two servers running this app, one is automatically starting the service, the other is not. I'm attempting to use the "svcadmin" command, however, apparently when I run a "svcs -a" search, the... (6 Replies)
Discussion started by: Nvizn
6 Replies
10. Shell Programming and Scripting
Hi All,
I have a file with long list of numbers. This file contains only one column. These numbers are very large. I am using following command:
cat myfile.txt | awk '{ sum+=$1} END {print sum}'
The output is coming in scientific notation. How do I get the result in proper format?
... (4 Replies)
Discussion started by: angshuman
4 Replies
THINK(1) General Commands Manual THINK(1)
NAME
think - you don't have to think, the computer can think for you
SYNOPSIS
think [ -detach ]
DESCRIPTION
Think simulates a thinking brain.
This can be useful if someone is not wanting to think at invocation time or if someone is needing some thinking about something. It can
also be helpful if someone's brain is not working correctly at invocation time.
When invoked, think will go ahead and look at all of the commands and keystrokes that a user has made during the current login session.
Think will then look at what files the user has. From this and what level the user is listed at in the file /usr/lib/think, think will
figure out what the user was trying to do when think was invoked.
DEVICES
The process that think uses to help a user is greatly aided if the user is wearing a brain interface bus (bib) device. A bib device is
normally worn on the head, and if being used, then think will try to see what was going through the users head at the time of invocation.
After think does this, it will send electric signals to the users brain, causing the user to type in whatever keystrokes are necessary to
accomplish the task that he/she doesn't want to think about.
OPTIONS
-detach
also known as "Must mother do all of your thinking for you?"-mode. This options causes think to run in the background as a daemon
that watches for users who look like they may need assistance. When a user is found to be exercising cluelessness, think will lock
up their keyboard and will proceed to execute what seems to be the most likely sequence of commands that the user had intended to
execute. This flag may only be used by the super-user.
FILES
/dev/brain
bib device special file.
/usr/lib/think
file to indicate various user abilities. The format of this file is a username on each line followed by some whitspace and then a
number. The higher the number for a given user, the more likely think is to assume that that user knows what he/she is doing.
Unfortunately, what think considers a large number will vary with usage.
BUGS
If a user is using a bib device and actually lacks a brain of their own, then there is a high risk that think will take over their (non-
existent) minds. This has the upshot that someone other than the user will have to stop the program. (Perhaps this is a feature.)
It may illegal in some areas to force users to wear bib devices.
AUTHOR
This man page was written by John Guthrie <guthrie@math.upenn.edu> with suggestions from Kevin Whyte <kwhyte@math.upenn.edu> for the
alt.sysadmin.recovery man page collection.
think version 1.0 April 5, 1996 THINK(1)