05-23-2011
That works perfectly. Thanks very much, verdepollo.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to check the second argument for a specific string .
The code below is what I am trying, but I get:
UX:test (./test): ERROR: { if ($0 ~ /StringImLooking4/) {print $1} }: Unknown operator
I want to test if the second argument contains the string StringImLooking4
Unixware 7
... (1 Reply)
Discussion started by: dinplant
1 Replies
2. UNIX for Dummies Questions & Answers
Is it possible to search through a large file full of rows and columns of text and retrieve only the rows that contain duplicates fields,
searchiing for duplicates on col4 & col6
Sample below
Col1 col2 col3 col4 col5 col6
G405H SURG FERGUSON ... (2 Replies)
Discussion started by: Gerry405
2 Replies
3. Shell Programming and Scripting
ppl,
this is my "file" with fields
orderno orderdate orderdesc telno street city
1 01/04/2006 abc 123 100 tampa
2 01/04/2006 abc 123 100 tampa
3 01/04/2006 abc 123 100 tampa
4 01/04/2006 abc ... (2 Replies)
Discussion started by: manthasirisha
2 Replies
4. UNIX for Advanced & Expert Users
Hello,
I am wondering if you can assist with my question and ask kindly for this.
I have a number of files that are listed as file1.gz through file100.gz.
I am trying to perform a grep on the files and find a specific date that only resides within within one of the files. There are... (3 Replies)
Discussion started by: legharb
3 Replies
5. UNIX for Dummies Questions & Answers
Hi
I would like to know how to search through a directory and pull out files that has a specific pattern in the filename. For example if the filename has "bsc" in it, then that file must be moved to another directory where I will perform some operations on it. I know grep can be used, but I'm... (17 Replies)
Discussion started by: ladyAnne
17 Replies
6. UNIX for Advanced & Expert Users
Hi all,
This is actually more for my lazyness then anything else, but I think others might find it useful to use as well. Basically this is what I am trying to achieve...
In my ubuntu home dir under Downloads is where firefox saves everything by default, now I know that you can manually... (3 Replies)
Discussion started by: STOIE
3 Replies
7. Shell Programming and Scripting
Hi
I am trying to search for a certain set of patterns within a file, and then perform other commands based on output.
testfile contents:
password requisite pam_cracklib.so lcredit=-1 ucredit=-1 ocredit=-1
script:
D="dcredit=-1"
if
then
echo $D exists
else
echo $D doesnt... (8 Replies)
Discussion started by: bludhemn
8 Replies
8. Red Hat
Hello,
Please help me with this!! Thanks in advance!!
I have a file named file.gc with the content:
1-- Mon Sep 10 08:53:09 CDT 2012
2revoke connect from FR2261;
3delete from mkt_allow where grantee = 'FR2261';
4grant connect to FR2261 with '******';
5alter user FR2261 comment... (0 Replies)
Discussion started by: raosr020
0 Replies
9. UNIX for Beginners Questions & Answers
Hi Folks ,
I have the different xml files at the following directory `/opt/app/rty/servers/tr/current/ops/config`
Let's say there are three files named
abc.xml
bv.xml
ert.xml
Now inside these xml there can be many tags as like shown below
<bean id="sdrt"... (6 Replies)
Discussion started by: unclesamm
6 Replies
LEARN ABOUT DEBIAN
bup-midx
bup-midx(1) General Commands Manual bup-midx(1)
NAME
bup-midx - create a multi-index (.midx) file from several .idx files
SYNOPSIS
bup midx [-o outfile] <-a|-f|idxnames...>
DESCRIPTION
bup midx creates a multi-index (.midx) file from one or more git pack index (.idx) files.
Note: you should no longer need to run this command by hand. It gets run automatically by bup-save(1) and similar commands.
OPTIONS
-o, --output=filename.midx
use the given output filename for the .midx file. Default is auto-generated.
-a, --auto
automatically generate new .midx files for any .idx files where it would be appropriate.
-f, --force
force generation of a single new .midx file containing all your This will result in the fastest backup performance, but may take a
long time to run.
--dir=packdir
specify the directory containing the .idx/.midx files to work with. The default is $BUP_DIR/objects/pack and $BUP_DIR/indexcache/*.
--max-files
maximum number of .idx files to open at a time. You can use this if you have an especially small number of file descriptors avail-
able, so that midx can complete (though possibly non-optimally) even if it can't open all your .idx files at once. The default
value of this option should be fine for most people.
--check
validate a .midx file by ensuring that all objects in its contained .idx files exist inside the .midx. May be useful for debugging.
EXAMPLE
$ bup midx -a
Merging 21 indexes (2278559 objects).
Table size: 524288 (17 bits)
Reading indexes: 100.00% (2278559/2278559), done.
midx-b66d7c9afc4396187218f2936a87b865cf342672.midx
DISCUSSION
By default, bup uses git-formatted pack files, which consist of a pack file (containing objects) and an idx file (containing a sorted list
of object names and their offsets in the .pack file).
Normal idx files are convenient because it means you can use git(1) to access your backup datasets. However, idx files can get slow when
you have a lot of very large packs (which git typically doesn't have, but bup often does).
bup .midx files consist of a single sorted list of all the objects contained in all the .pack files it references. This list can be binary
searched in about log2(m) steps, where m is the total number of objects.
To further speed up the search, midx files also have a variable-sized fanout table that reduces the first n steps of the binary search.
With the help of this fanout table, bup can narrow down which page of the midx file a given object id would be in (if it exists) with a
single lookup. Thus, typical searches will only need to swap in two pages: one for the fanout table, and one for the object id.
midx files are most useful when creating new backups, since searching for a nonexistent object in the repository necessarily requires
searching through all the index files to ensure that it does not exist. (Searching for objects that do exist can be optimized; for exam-
ple, consecutive objects are often stored in the same pack, so we can search that one first using an MRU algorithm.)
SEE ALSO
bup-save(1), bup-margin(1), bup-memtest(1)
BUP
Part of the bup(1) suite.
AUTHORS
Avery Pennarun <apenwarr@gmail.com>.
Bup unknown- bup-midx(1)