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
LEARN ABOUT DEBIAN
install-keymap
INSTALL-KEYMAP(8) System Manager's Manual INSTALL-KEYMAP(8)
NAME
install-keymap -- expand a given keymap and install it as boot-time keymap
SYNOPSIS
install-keymap [keymap-name | NONE | KERNEL]
DESCRIPTION
install-keymap usually takes a keymap-name as argument. The file is passed to loadkeys for loading, so that valid values for this argument
are the same than that of arguments to loadkeys. install-keymap expands include-like statements in that file, and puts the result in
/etc/console/boottime.kmap.gz, which will be loaded into the kernel at boot-time.
One may also specify KERNEL instead of a keymap name, causing /etc/console/boottime.kmap.gz to be removed, making sure that no custom
keymap will replace the kernel's builtin keymap at next reboot.
An argument of NONE tells the command to do nothing. It can be used by caller scripts to avoid handling this special case and needlessly
duplicate code.
The purpose of this processing is to solve an annoying problem, of 2 apparently conflicting issues. The first one is an important goal of
keymap management in Debian, namely ensuring that whenever the user or admin is expected to use the keyboard, the keymap selected as boot-
time keymap is in use; this means the keymap has to be loaded before a shell is ever proposed, which means very early in the booting
process, and especially before all local filesystems are mounted (/etc/rcS.d/S10checkroot.sh can spawn sulogin).
The second issue is that for flexibility we allow that /usr or /usr/share may live on their own partition(s), and thus /usr/share/keymaps,
where keymap files live, may not be available for reading at the time we need a keymap file. And no, we won't put 1Mb of keymaps in the
root partition just for this.
And the problem is, most keymap files are not self-contained, so it does not help to just copy the selected file into the root partition.
The best known solution so far is to expand the keymap file so that it becomes self-contained, and put it in the root partition. That's
what this tool does.
FILES
/etc/console/boottime.kmap.gz
Where the boot-time keymap is stored
SEE ALSO
loadkeys (8).
AUTHOR
This program and manual page were written by Yann Dirson dirson@debian.org for the Debian GNU/Linux system, but as it should not include
any Debian-specific code, it may be used by others.
INSTALL-KEYMAP(8)