Hi ppl,
I am a bit lost on this...can some one assist. I know this can be down with awk or sed, but i cant get the exact syntax right.
I need to only extract the numbers from a signle word ( eg abcd.123.xyz )
How can i extract 123 only ?
Thanks (14 Replies)
Just wondering if someone could assist me with shell script I'm trying to write. I need to read the final column of a text file (shown below) and workout what the average number is. The text file will have a variable number of lines, I just want the script to pull out the values in the final field... (14 Replies)
Hey all, I am relatively poor at programming and unfortunately don't have time to read about programming at this current moment.
I wanted to be able to run a simple command to read a column of numbers in a file and give me the average of those numbers. In addition if I could specify the... (2 Replies)
Hi all,
I have a list of numbers. I need an awk command to find out the numbers of elements (number of numbers, sort to speak), the average value the min and max value. Reading the list only once, with awk.
Any ideas?
Thanks! (5 Replies)
Hello
I have created next scritpt to do the next: chekp if host is alive. When the host down, launch telnet other equip to do checks.
When execute the script the load average of the machines increase. For example:
Before launch script
top - 11:14:56 up 14 days, 18:06, 3 users, load... (3 Replies)
Hi,
I have 3 to 4 different files, from that i need to take a Average of numbers from a particular column. here i have to take 4th column,
that should present in diff. file.
File 1:
Col1 col2 col3 col4
1 11 sa 12.00
2 22 sb 134.59
3 33 sc 11.99
4 44 sd 12.44
Col1 col2 col3... (8 Replies)
For the data
I would like to parse down and for each parsing
I want a cumulative averaging, stored in an array
that can be output.
I.e.
546/NR = 546
(546+344)/NR=(546+344)/2 = etc.
For N record input I want N values of the average (a block
averaging effectively)
Any... (3 Replies)
Hello friends,I am new to Unix programming.
how do I achieve the following in Unix shell script (I am running ksh on AIX)
extract the number from name of file?
My file format is like "LongFileName-1234.020614-221030.txt"
now I want to extract value which is between (-) hyphen and (.) dot... (4 Replies)
Hello All,
What is load average and how is it computed in Solaris 10?
What are the different ranges for normal, warning and danger signs?
Kindly clarify.
Thank you,
Sunil Kumar (3 Replies)
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.5 (Maipo)
I have this script that will monitor filesystems and send me e-amil alerts.
#! /bin/ksh
DIST_LIST=monitor@...com
WORKDIR=/home/monitor
WARNLEVEL=90
MAIL_SUBJ="filesystems monitor on "$(hostname)
... (3 Replies)
Discussion started by: danielshell
3 Replies
LEARN ABOUT DEBIAN
nomarch
nomarch(1) Archive Extraction nomarch(1)NAME
nomarch - extract `.arc' archives
SYNOPSIS
nomarch [-hlptUv] [archive.arc] [match1 [match2 ... ]]
DESCRIPTION
nomarch lists, extracts, or tests `.arc' archives. (An alternate extension sometimes used was `.ark'; these work too.) This is a very out-
dated file format which should certainly not be used for anything new, but you may still need an extraction utility, and here it is. :-)
The default action is to extract all files in the specified archive; see OPTIONS below for how to do other things instead.
OPTIONS -h give terse usage help.
-l list files in archive. If verbose listings are enabled, it shows the filename, compression method, compressed/uncompressed size,
date/time, and CRC; but by default, it just shows the filename, uncompressed size, and date/time.
-p extract to standard output, rather than to separate files.
-t test files in archive (more precisely, check file CRCs).
-U use uppercase filenames; more precisely, preserve original case from archive.
-v give verbose output (when used with `-l').
archive.arc
the archive to operate on.
match1 etc.
optionally specify which archive members to list/extract/test. Those which match any of these filenames/wildcards are processed.
Wildcard operators supported are shell-like `*' and `?', but don't forget to quote arguments which use these (e.g. `nomarch foo.arc
'*.bar'').
EXTRACTING MULTIPLE ARCHIVES
nomarch follows the `unzip'-like practice of working on only one archive per run, with further `filenames' given on the command-line actu-
ally specifying files to extract (or whatever). The easiest way to work on multiple files with nomarch is simply to run it multiple times
using for; for example:
for i in *.arc; do nomarch $i; done
The above would extract all archives in the current directory.
USING THE PROGRAM FROM EMACS
Emacs's arc-mode facility lets you work with various kinds of archive file directly from the editor. Making it use nomarch for extracting
`.arc' files isn't too hard. Just add the following to your ~/.emacs file:
(setq archive-arc-extract '("nomarch" "-U"))
BUGS
The CRC used by the format is only 16-bit, so `-t' is a less-than-perfect test.
One compression method, obsolete even by `.arc' standards :-), isn't supported yet. This is partly because I've yet to find a single file
which uses it, despite testing an awful lot of files.
Subdirectories in Spark archives are extracted as the `.arc'-format files they really are, which may not be terribly convenient.
SEE ALSO tar(1), gzip(1), bzip2(1), lbrate(1)AUTHOR
Russell Marks (rus@svgalib.org).
Version 1.4 18th June, 2006 nomarch(1)