08-03-2010
@girija:
It depends on where in the consecutive lines the string "disconnect" is placed so you could maybe check by this if it should be printed or not. But to make sure:
@Sunny Sid:
To reduce the chance of errors and guessing around please post an excerpt of your input file and the expected output, ty. Please use code tags when doing so.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
When I type a command at the command line it supplies one result and the exact same command in a script
egrep '^01|^02|^03|^04' file > fileout
count = 29353
same count in the script yields a count of 23492
is there any reason this could be happening. (1 Reply)
Discussion started by: r1500
1 Replies
2. Shell Programming and Scripting
hi,
how to search whole line using grep in a file. (1 Reply)
Discussion started by: useless79
1 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
I am trying to search multiple lines in file using grep /sed.And i cant seem to make it work.
The File looks like this
5012001,100,AUTOBATCH,FEE,DAILYFEE,0,0
4241 SERVICE DENIED
5012002,100,AUTOBATCH,FEE,DAILYFEE,0,0
4241 SERVICE DENIED... (6 Replies)
Discussion started by: pistachio
6 Replies
4. Shell Programming and Scripting
Hi,
this is a little strange, i have the following code:
if
then
echo -e "psa/admin/sbin present "
which shows if a directory is present, but what I would like it to do is show the line and then remove its self and show the rest of the script... no idea what to look... (1 Reply)
Discussion started by: foz
1 Replies
5. UNIX for Dummies Questions & Answers
Hello everyone,
I have been trying to get a list of all files containing a line of this type:
};#followed by anything
with any spaces (0 or more or 0 or more tabs) before the } and between each of the characters.
I have been trying this :
grep '*}*;*#*' *.c
but I have not been fully... (1 Reply)
Discussion started by: gio001
1 Replies
6. Shell Programming and Scripting
Hi,
At first I want to please you to provide the solution with grep/sed if possible. :cool:
File looks like:
wished result:
so I want in a new file
BLUE@@RED
string from first line like:
grep "/folder_start" cs_src > tmp1
string from second line:
grep "/main" cs_src... (14 Replies)
Discussion started by: unknown7
14 Replies
7. Shell Programming and Scripting
Hello ,
When using vim, can ctag and cscope support recording search results and displaying the history results ? Once I jump to one tag, I can use :tnext to jump to next tag, but how can I display the preview search result? (0 Replies)
Discussion started by: 915086731
0 Replies
8. Shell Programming and Scripting
Hello ,
I am trying to compare two files i.e one master file and the other exclusion file. If the second field of masterfile is oracle8 then I need to compare the 3rd field of master file with the 1st field of all the rows of exclusion file else I need to compare 2nd field from master file with... (2 Replies)
Discussion started by: rahul2662
2 Replies
9. Shell Programming and Scripting
Hello,
I have a Textfile sees like this
"Word1":aksdfjaksdf
"Word2":askdfjalsdkfdlsjfasldfj
"This is Word3":asdfkjalskdfj
what i need is a string which sees like this
Word1;Word2;This is Word3
Conclusion always the text within "" which is before the :
i tried it with grep.... (10 Replies)
Discussion started by: SwordMaster
10 Replies
10. What is on Your Mind?
Hey,
I added an animation switch on the search results page; so by default the thread previews are off, but if you want to look at them, just click on the green button and the thread previews will turn on (and back off).
See image and attached animation:
... (1 Reply)
Discussion started by: Neo
1 Replies
CQTEST(8C) CQTEST(8C)
NAME
cqtest - HylaFAX copy quality checking test program
SYNOPSIS
/usr/sbin/cqtest [ options ] input.tif
DESCRIPTION
cqtest is a program for testing the copy quality checking support in the HylaFAX software (specifically, in the faxgetty(8C) program).
cqtest takes a TIFF/F (TIFF Class F) file and generates a new TIFF/F file that is a copy of the input file, but with any erroneous scan-
lines replaced/regenerated. In addition, cqtest prints diagnostic messages describing its actions and indicates whether the input data has
acceptable copy quality according to the copy quality checking threshold parameters. Options are provided for specifying copy quality
checking threshold parameters
OPTIONS
-m badlines Set the maximum consecutive bad lines of data that may appear in each acceptable page of input data. This is equivalent to
the MaxConsecutiveBadLines configuration parameter; c.f. hylafax-config(5F). By default cqtest accepts no more than 5 con-
secutive bad lines in a page.
-o file Write output to file. By default output is written to the file cq.tif.
-p %goodlines Set the minimum percentage of ``good lines'' of data that may appear in acceptable page of input data. A line is good if it
decodes without error to a row of pixels that is the expected width. This is equivalent to the PercentGoodLines configura-
tion parameter; c.f. hylafax-config(5F). By default cqtest requires that 95% of the rows of each page be good.
EXAMPLES
The following shows a multi-page, high-resolution document with a single error on each page. Each page has acceptable copy quality using
the default threshold parameters.
hyla% /usr/sbin/cqtest ~/tiff/pics/faxix.tif
1728 x 297, 7.7 line/mm, 1-D MH, lsb-to-msb
RECV/CQ: Bad 1D pixel count, row 245, got 1616, expected 1728
RECV: 2234 total lines, 1 bad lines, 1 consecutive bad lines
1728 x 297, 7.7 line/mm, 1-D MH, lsb-to-msb
RECV/CQ: Bad 1D pixel count, row 148, got 3023, expected 1728
RECV: 2234 total lines, 1 bad lines, 1 consecutive bad lines
1728 x 297, 7.7 line/mm, 1-D MH, lsb-to-msb
RECV/CQ: Bad 1D pixel count, row 151, got 1722, expected 1728
RECV: 2234 total lines, 1 bad lines, 1 consecutive bad lines
1728 x 297, 7.7 line/mm, 1-D MH, lsb-to-msb
RECV/CQ: Bad 1D pixel count, row 148, got 1776, expected 1728
RECV: 2234 total lines, 1 bad lines, 1 consecutive bad lines
SEE ALSO
faxgetty(8C), hylafax-config(5F)
October 3, 1995 CQTEST(8C)