02-25-2012
Thanks
bartus11
Many thanks, that worked a treat!
Wabbit02!
9 More Discussions You Might Find Interesting
1. Solaris
i have hundreds of lines of formatted data with 10 different fields per line. the data is refreshed every few minutes and some fields in some lines may reflect new data. i'm looking for a sample of code that help me to identify those new fields so that i can write them to a file to indicate that... (0 Replies)
Discussion started by: davels
0 Replies
2. Shell Programming and Scripting
Dear All,
I'm an amateur to writing scripts and need to do the following
Need to read all files with a .log extension in a directory and identify the value for username i.e. all files have something like username = John. Once this is read, I need to print this value to a new file. The new file... (2 Replies)
Discussion started by: Kelly_B
2 Replies
3. Shell Programming and Scripting
Hi,
I am new to UNIX. Can some one help me to solve the below.
I have a requirement to to identify the specific fields in row and also some part of the field.
In my file I have a record as
sundra;10.44.48.65;10thstreet TCP packet out of state: First packet isn't SYN;telno:... (3 Replies)
Discussion started by: suneel.mekala
3 Replies
4. Shell Programming and Scripting
Hi all, I'd like to know how to identify the first word in a string (in bash) for e.g.
echo "enter your name"
read name
(user enters 'Joe Bloggs' for e.g.)
echo "hello $name"
(output says "hello Joe")
Thanks for any help (5 Replies)
Discussion started by: kazazza
5 Replies
5. Shell Programming and Scripting
Hoping for some assistance.
my source file consists of:
os, ip, username
win7, 123.56.78, john
win7, 123.56.78, paul
win7, 10.1.1.1, john
win7, 10.2.2.3, joe
I've been trying to run a script that will only return ip and username where the IP address is the same and the username is... (3 Replies)
Discussion started by: tekvaio
3 Replies
6. Shell Programming and Scripting
here is what i want to achieve... consider a file contains below contents. the file size is large about 60mb
cat dump.sql
INSERT INTO `table1` (`id`, `action`, `date`, `descrip`, `lastModified`) VALUES (1,'Change','2011-05-05 00:00:00','Account Updated','2012-02-10... (10 Replies)
Discussion started by: vivek d r
10 Replies
7. Shell Programming and Scripting
I have 3 files, data file,schema file and a threshold file.
Data file contains data in which columns are distributed according to schema file. This data file doesn't contain any headers.
Three continuous columns in the data file represent single variable in schema file.
first column represent... (1 Reply)
Discussion started by: bharathbangalor
1 Replies
8. Shell Programming and Scripting
I have a file1 with different with multiple fields and records
File2 has 2 fields.
I want to find and replace strings in file1 based on file2 values (I Want an exact match i.e. for example: when searching for DT:3, Substr of DT:34 should not be matched)
File2:
DT:3 foo_err
DT:34 bar_frr... (8 Replies)
Discussion started by: aydj
8 Replies
9. Shell Programming and Scripting
Hi
I have a file as below
<field1> <field2> <field3> ... <field_num1> <field_num2>
Trying to sort based on difference of <field_num1> and <field_num2> in desceding order and print all fields.
I tried this and it doesn't sort on the difference field .. Appreciate your help.
cat... (9 Replies)
Discussion started by: newstart
9 Replies
CRMGR(1) Quick Database Manager CRMGR(1)
NAME
crmgr - administration utility for QDBM Curia
SYNOPSIS
crmgr create [-s] [-bnum num ] [-dnum num] name
crmgr put [-kx|-ki] [-vx|-vi|-vf] [-keep|-cat] [-lob] [-na] name key val
crmgr out [-kx|-ki] [-lob] name key
crmgr get [-nl] [-kx|-ki] [-start num] [-max num] [-ox] [-lob] [-n] name key
crmgr list [-nl] [-k|-v] [-ox] name
crmgr optimize [-bnum num] [-na] name
crmgr inform [-nl] name
crmgr remove name
crmgr repair name
crmgr exportdb name dir
crmgr importdb name dir
crmgr snaffle [-kx|-ki] [-ox] [-n] name key
crmgr version
DESCRIPTION
This manual page documents briefly the crmgr commands.
crmgr is a utility for debugging Curia and its applications. It features editing and checking of a database. It can be used for the data-
base applications with shell scripts. This command is used in the above format. name specifies a database name. key specifies the key of a
record. val specifies the value of a record.
OPTIONS
A summary of options is included below. For a complete description, see the file:///usr/share/doc/qdbm-doc/spex.html#curiacli.
-s make the file sparse.
-bnum num
specify the number of the elements of the bucket array.
-dnum num
specify the number of division of the database.
-kx treat key as a binary expression of hexadecimal notation.
-ki treat key as an integer expression of decimal notation.
-vx treat val as a binary expression of hexadecimal notation.
-vi treat val as an integer expression of decimal notation.
-vf read the value from a file specified with val.
-keep specify the storing mode for `CR_DKEEP'.
-cat specify the storing mode for `CR_DCAT'.
-na do not set alignment.
-nl open the database without file locking.
-start specify the beginning offset of a value to fetch.
-max specify the max size of a value to fetch.
-ox treat the output as a binary expression of hexadecimal notation.
-lob handle large objects.
-n do not output the tailing newline.
-k output keys only.
-v output values only.
SEE ALSO
qdbm(3), crtsv(1), curia(3), cropen(3).
AUTHOR
QDBM was written by Mikio Hirabayashi <mikio@fallabs.com>.
This manual page was written by Fumitoshi UKAI <ukai@debian.or.jp>, for the Debian project (but may be used by others).
Man Page 2005-05-23 CRMGR(1)