02-15-2011
Thanks Franklin! It works as expect! I just have to figure out expressions then I might be able do what you did there, LOL!
---------- Post updated at 10:55 AM ---------- Previous update was at 06:47 AM ----------
Franklin,
My apologies, I noticed the following error, and it's not outputing a portion of the log cause I fail to mention I'm running Solaris.
awk: too many output files 10
record number 157
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All ,
I have different strings (SQL queries infact) of different lengths such as:
1. "SELECT XYZ FROM ABC WHERE ABC.DEF='123' "
2. "DELETE FROM ABC WHERE ABC.DEF='567'"
3. "SELECT * FROM ABC"
I need to find out the word coming after the... (1 Reply)
Discussion started by: swapnil.nawale
1 Replies
2. Shell Programming and Scripting
Hi,
I have list of directory paths in a variable and i want to delete those dirs and if dir does not exist then search that string and get the correct path from xml file after that delete the correct directory. i tried to use grep and it prints the entire line from the search.once i get the entire... (7 Replies)
Discussion started by: dragon.1431
7 Replies
3. Shell Programming and Scripting
My source is on each line
98.194.245.255 - - "GET /disp0201.php?poc=4060&roc=1&ps=R&ooc=13&mjv=6&mov=5&rel=5&bod=155&oxi=2&omj=5&ozn=1&dav=20&cd=&daz=&drc=&mo=&sid=&lang=EN&loc=JPN HTTP/1.1" 302 - "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR... (5 Replies)
Discussion started by: elamurugu
5 Replies
4. Shell Programming and Scripting
Hi,
Our input xml looks like:
<doc>
<str name="account_id">1111</str>
<str name="prd_id">DHEP155EK</str>
</doc>
- <doc>
<str name="account_id">6666</str>
<str name="prd_id">394531662</str>
</doc>
- <doc>
<str name="account_id">6666</str>
<str... (1 Reply)
Discussion started by: Jassz
1 Replies
5. Shell Programming and Scripting
Hi Gurus
I am new to this forum.. I am using HP Unix OS.
I have one single string in input file as shown below
Abc123 | cde | fgh | ghik| lmno | Abc456 |one |two |three | four | Abc789 | five | Six | seven | eight | Abc098 | ........
I want to achive the result in a output file as shown... (3 Replies)
Discussion started by: kannansr621
3 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have gone through may posts and dint find exact solution for my requirement.
I have file which consists below data and same file have lot of other data.
<MAPPING DESCRIPTION ='' ISVALID ='YES' NAME='m_TASK_UPDATE' OBJECTVERSION ='1'>
<MAPPING DESCRIPTION ='' ISVALID ='NO'... (11 Replies)
Discussion started by: tmalik79
11 Replies
7. Shell Programming and Scripting
Input file:
#read_1
AWEAWQQRZZZQWQQWZ
#read_2
ZZAQWRQTWQQQWADSADZZZ
#read_3
POGZZZZZZADWRR
.
.
Desired output file:
#read_1 3
#read_1 1
#read_2 2
#read_2 3
#read_3 6
.
. (3 Replies)
Discussion started by: perl_beginner
3 Replies
8. Shell Programming and Scripting
Hello friends, I need a BIG help from UNIX collective intelligence:
I have a CSV file like this:
VALUE,TIMESTAMP,TEXT
1,Sun May 05 16:13:05 +0000 2013,"RT @gracecheree: Praying God sends me a really great man one day. Gotta trust in his timing.
0,Sun May 05 16:13:05 +0000 2013,@sendi__... (19 Replies)
Discussion started by: kraterions
19 Replies
9. Shell Programming and Scripting
Hi,
I have a sample file as shown below, I am looking for sed or any command which prints the complete word only from the input file.
Ex:
$ cat "sample.log"
I am searching for a word which is present in this file
We can do a pattern search using grep but I need to cut only the word which... (1 Reply)
Discussion started by: mohan_kumarcs
1 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
I'm writing unix shell script and I have these files. I need to get name before _DETL.tmp.
ABC_AAA_DETL.tmp
ABC_BBB_DETL.tmp
ABC_CCC_DETL.tmp
PQR_DETL.tmp
DEF_DETL.tmp
JKL_DETL.tmp
YUI_DETL.tmp
TG_NM_DDD_DETL.tmp
TG_NM_EEE_DETL.tmp
GHJ_DETL.tmp
RTY_DETL.tmp
output will... (3 Replies)
Discussion started by: ace_friends22
3 Replies
LEARN ABOUT DEBIAN
seivot
SEIVOT(1) General Commands Manual SEIVOT(1)
NAME
seivot - benchmark backup application (obnam)
SYNOPSIS
seivot [--benchmark-fsck] [--config=FILE] [--description=TEXT] [--drop-caches] [--dump-config] [--dump-memory-profile=METHOD]
[--dump-setting-names] [--encrypt-with=KEYID] [--file-size=SIZE] [--generate-manpage=TEMPLATE] [--generations=COUNT] [-h] [--help]
[--incremental-data=SIZE] [--initial-data=SIZE] [--larch-branch=LARCH-BRANCH] [--list-config-files] [--log=FILE] [--log-keep=N]
[--log-level=LEVEL] [--log-max=SIZE] [--log-mode=MODE] [--no-default-configs] [--obnam-branch=OBNAM-BRANCH] [--obnam-config=FILE]
[--obnam-profile=NAMEPATTERN] [--output=FILE] [--profile-name=PROFILE-NAME] [--program=PROGRAM] [--sftp-delay=SFTP-DELAY]
[--use-existing=DIR] [--use-sftp-repository] [--use-sftp-root] [--verify] [--version] [FILE]...
DESCRIPTION
seivot benchmarks a backup application. It has been written primarily for obnam(1), but could be extended for other backup applications.
seivot generates some live data using genbackupdata(1), and then runs the backup application. It then generates some more live data, and
runs a second backup generation, etc. It stores the measurements in an output file. See seivots-summary(1) for a tool to show data from
such files in a tabular fashion. (seivot does not itself show the tabular data, because one is rarely interested in the output from just
one run, and instead wants to contrast it with other runs).
OPTIONS
--benchmark-fsck
benchmark fsck?
--config=FILE
add FILE to config files
--description=TEXT
free-form description of this backup run
--drop-caches
clear Linux kernel cache before running commands (will ask for sudo pasword
--dump-config
write out the entire current configuration
--dump-memory-profile=METHOD
make memory profiling dumps using METHOD, which is one of: none, simple, meliae, or heapy (default: simple)
--dump-setting-names
write out all names of settings and quit
--encrypt-with=KEYID
encrypt backups with KEYID
--file-size=SIZE
size of files to create
--generate-manpage=TEMPLATE
fill in manual page TEMPLATE
--generations=COUNT
total number of generations to measure (5)
-h, --help
show this help message and exit
--incremental-data=SIZE
add SIZE live data for additional generations (1024)
--initial-data=SIZE
size of initial live data (1024)
--larch-branch=LARCH-BRANCH
bzr branch from which to use larch (default is installed larch)
--list-config-files
list all possible config files
--log=FILE
write log entries to FILE (default is to not write log files at all); use "syslog" to log to system log, or "none" to disable log-
ging
--log-keep=N
keep last N logs (10)
--log-level=LEVEL
log at LEVEL, one of debug, info, warning, error, critical, fatal (default: debug)
--log-max=SIZE
rotate logs larger than SIZE, zero for never (default: 0)
--log-mode=MODE
set permissions of new log files to MODE (octal; default 0600)
--no-default-configs
clear list of configuration files to read
--obnam-branch=OBNAM-BRANCH
bzr branch from which to run obnam (default is installed obnam)
--obnam-config=FILE
use FILE as an Obnam configuration file
--obnam-profile=NAMEPATTERN
store Python profiling output in files named after NAMEPATTERN (no profiling, unless set); %(foo)s in pattern gets filled in, where
foo is op (for backup/restore/etc), gen, or order (cumulative/time)
--output=FILE
write output to FILE, instead of standard output
--profile-name=PROFILE-NAME
name of backup use-case profile name (for documentation purposes only)
--program=PROGRAM
program to benchmark (obnam)
--sftp-delay=SFTP-DELAY
add an artificial delay (in milliseconds) to all SFTP transfers
--use-existing=DIR
use exiting DIR for initial generation
--use-sftp-repository
access backup repository over the network via sftp
--use-sftp-root
access backup repository over the network via sftp
--verify
verify restored data
--version
show program's version number and exit
EXAMPLE
To run a simple benchmark:
seivot --initial-data=10G --incremental-data=1G
SEE ALSO
seivots-summary(1), obnam(1).
SEIVOT(1)