Hello again, I'm still working on the redo of my script I created before and came across a grep question.
I'm on SunOS 5.9 and using the Korn Shell. I'm writing a function to check for validation of root disks being mirrored. If the server allows me to use metastat, I'm looking to show it has... (4 Replies)
suppose i have a file structure(serial file)--
----------
----------
---------
summery
--------
------
--------
finished
-----
-------
i want to fetch lines from summery to finished
i can get line of summery by grep command. but how can i fetch lines untill it reaches finished.probably... (2 Replies)
Hi
I am writing a script which should read a file and search for certain strings 'approved' or 'removed' and retain only those lines that contain the above strings.
Ex: file name 'test'
test:
approved package
waiting for approval package
disapproved package
removed package
approved... (14 Replies)
Hi folks
I am not allowed to install GNU grep on AIX.
Here my code excerpt:
grep_fatal () {
/usr/sfw/bin/gegrep -B4 -A2 "FATAL|QUEUE|SIGHUP"
}
Howto the same on AIX based machine?
from manual GNU grep
‘--after-context=num’
Print num lines of trailing context after... (4 Replies)
I have several very large file that are extracts from Oracle tables. These files are formatted in XML type syntax with multiple entries like:
<ROW>
some information
more information
</ROW>
I want to grep for some words, then print all lines between <ROW> AND </ROW>. Can this be done with AWK?... (7 Replies)
Hi,
I have one file, say file 1, that has data like below where 19900107 is the date,
19900107 12 144 129 0.7380047
19900108 12 168 129 0.3149017
19900109 12 192 129 3.2766666E-02
... (3 Replies)
RUNLIM(1) General Commands Manual RUNLIM(1)NAME
runlim - a program to run benchmarks
SYNOPSIS
runlim [ options ...] command [ arguments ...]
DESCRIPTION
run is a tool that can be used to run and control benchmarks. It executes a given command with (optional) arguments, samples resource
usage during the run, and kills the process (and its child processes) if a certain time and/or space limit is exhausted.
Every 100 milliseconds, runlim takes a sample of the program's resource utilization, and logs status information to stderr every second.
Optionally, the status can be logged to a file.
Multi-threaded programs can be limited by setting a wall clock timeout. runlim follows the time accumulation scheme of GNU time for multi-
threaded programs and programs that spawn multiple child-processes: time spent in each thread/child is summed up, unless you are only
interested in walk clock time.
OPTIONS
runlim accepts the following options:
-h, --help
Show summary of options.
--version
Show version of program.
-o FILE, --output-file=FILE
Overwrite or create FILE for output logging.
-s NUM, --space-limit=NUM
Set space limit to NUM megabytes.
-t NUM, --time-limit=NUM
Set time limit to NUM seconds.
-r NUM, --real-time-limit=NUM
Set real time limit to NUM seconds.
-k, --kill
Propagate signals.
SEE ALSO time(1), timelimit(1), timeout(1), time(7).
AUTHOR
runlim was written by Armin Biere and Toni Jussila.
This manual page was written by Thomas Krennwallner <tkren@kr.tuwien.ac.at>, for the Debian project (and may be used by others).
February 11, 2011 RUNLIM(1)