Hi
Am trying to compare the values of two files..
One is a big file that has many values and the other is a small file..
The big file has all values present in small file..
My problem is when i tried to compare the value present is SmallFile that is not present in BigFile.. My code should return error
But it is returning the return value of grep command as zero
Here the "RetVal" when $i=100000 is one.. But it is returning zero..
Please help..
Hi,
There is a file having a list of running PIDs and another file having
a list of registered PIDs. How can we check if each value of running
PIDs are less or more than the registered PIDs i.e. comparing the
value of each PID in both the files.
Request you to pls give your inputs. ... (2 Replies)
Hello all
while writing a small script , i got stuck with this simple thing.Hope you guyz can help.
Iam trying to read password
echo"enter password"
read $pwd
now i have to check this
echo"enter password to proceed"
read $pwd
now i have to check both the values of the... (2 Replies)
Hi all,
I have got a problem while comparing 2 text files and the result should contains the unique values(Non repeatable).
For eg:
file1.txt
1
2
3
4
file2.txt
2
3
So after comaping the above 2 files I should get only 1 and 4 as the output. Pls help me out. (7 Replies)
i have two file and i am comparing both..
in cmp1 ,the content is :
the nu of file is : <some integer value>
in cmp2 ,the content is :
the nu of file is :
so want a script which will take value (2) when cmp1 is compared with cmp2..
i mean cmp cmp1 cmp2 the the output will be
he nu of... (1 Reply)
Hi to all,
I have the following text within inputfile
data1,value1,value2
data1,value3,value2
data1,value5,value6
data2,value1,value2
data2,value3,value4
data3,value1,value2
data3,value3,value4
data4,value1,value2
data4,value3,value4
data4,value5,value6
I would like to... (4 Replies)
Hi all,
I am new to unix and I am trying hard to get this requirement, but no luck.
I am trying to compare two cloumns in two files and if it matches, the last column in file1 must be divided by file2 and the output must be written in a new file. To elaborate the 2nd column in file1 (EUR) must be... (6 Replies)
I have two text files where the first three columns are exactly the same. I want to compare the fourth column of the text files and if the values are different, print that row into a new output file. How do I go about doing that?
File 1:
100 rs3794811 0.01 0.3434
100 rs8066551 0.01... (8 Replies)
Hi,
I have two text files with matching first columns. Some of the values in the second column do not match. I want to write a script to print out the rows (only the first column) where the values in the second column do not match.
Example:
Input 1
A 1
B 2
C 3
D 4
Input 2
A 2
B 2... (6 Replies)
First I'd like to apologize if I opened a thread which is already open somewhere.
I did a bit of searching but could quite find what I was looking for, so I will try to explaing what I need.
I'm writing a script on our server, got to a point where I have two files with results. Example:
File1... (6 Replies)
I was trying to extract value of g1 and p1 only inside the tags where t1 is "Reading C (bytes)" and comparing them to make sure p1 is always less than g1. Here is the Json file I'm using -
File:-
{
"g1" : 1482568,
"n1" : "v_4",
"p1" : 0,
"s1" : "RC",
"t1" : "LM",
}
{
"g1" :... (3 Replies)
Discussion started by: Mannu2525
3 Replies
LEARN ABOUT DEBIAN
queue-repair
queue-repair(8) System Manager's Manual queue-repair(8)NAME
queue-repair - deal with the qmail queue directory structure
SYNOPSIS
queue-repair [ -htrcbn ] [ -n split ] [ conf-qmail ]
DESCRIPTION
queue-repair deals with the qmail queue structure; it can create a new queue, move and properly rename a queue, dynamically change the
conf-split value, convert big-todo queues to non-big-todo and vice versa, and repair a corrupted queue.
conf-qmail defaults to /var/lib/qmail/ on Debian.
OPTIONS
-h|--help
Display usage information and built-in defaults, then exit.
-t|--test
Run in test-only mode. queue-repair will attempt to report all problems that it finds, without correcting them. This is the
default.
-r|--repair
Run in repair mode. queue-repair will attempt to correct all problems that it finds, except if the basic queue directories (queue,
queue/mess, queue/info, etc) are not found.
-c|--create
Run in create-and-repair mode. queue-repair will attempt to correct all problems that it finds, including creation of a new queue
structure from scratch.
-s|--split split
Specify split as the value of conf-split. This is the number of split subdirectories for those queue directories which are hashed.
The default for qmail is 23. Appropriate values depend on the volume of mail handled, OS filesystem efficiency, and other factors,
but this should always be a prime number.
If you do not specify conf-split, queue-repair will attempt to determine the current value from the existing queue. This option can
be used, however, to change the conf-split value of an existing queue (qmail will still have to be recompiled with the new value).
When creating a new queue, this option must always be specified.
-b|--bigtoto
Use big-todo. queue-repair should be able to automatically determine if you're using qmail patched with the big-todo patch. This
option can be used, however, to convert a non-big-todo queue to a big-todo queue (qmail will still have to be recompiled with the
big-todo patch).
If neither this option nor --no-bigtodo is used, queue-repair will attempt to determine this automatically. When creating a new
queue, either this option or --no-bigtodo must always be specified.
-n|--no-bigtodo
Do not use big-todo. queue-repair should be able to automatically determine if you're using qmail patched with the big-todo patch.
This option can be used, however, to convert a big-todo queue to a non big-todo queue (qmail will still have to be recompiled with-
out the big-todo patch).
If neither this option nor --bigtodo is used, queue-repair will attempt to determine this automatically. When creating a new queue,
either this option or --bigtodo must always be specified.
--i-want-a-broken-conf-split
Force the use of a non-prime value for conf-split.
SEE ALSO qmail(7)queue-repair(8)