02-15-2011
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi,
I get this error message after I pipe a lot of output into grep. Does anyone know what his means?
grep: writing output: Invalid argument
thanks,
gammaman (3 Replies)
Discussion started by: gammaman
3 Replies
2. UNIX for Dummies Questions & Answers
Can anyone tell me what this error means?:
Usage: grep -hblcnsviw pattern file . . .
Thanks in advance! (2 Replies)
Discussion started by: Dave724001
2 Replies
3. Shell Programming and Scripting
Hi gurus
I am running a grep statement like this
(ls -ltr eCustomerCME* | grep ^- | tail -1 | awk ' { print $6,$7,$8 } ')
its returning an error as follows
"ksh: /bin/ls: arg list too long"
Does anybody know why this error occurs. this seems to work fine in other boxes except this... (6 Replies)
Discussion started by: ragha81
6 Replies
4. Shell Programming and Scripting
hi!!
I am getting an error while grepping.
The error is like "grep: RE error 41: No remembered search string."
Can u please help with it?
Thanks in advance.........:) (3 Replies)
Discussion started by: tushar_tus
3 Replies
5. Shell Programming and Scripting
Hi,
Thanks for all your help. This forum is excellent. I just learnt PERL over the last few weeks by coding and asking questions....
I have one more.
When I run my script I get the following error msg. The grep statement I have is
`grep "Number of jobs processed:" output | sort -u |... (10 Replies)
Discussion started by: nurani
10 Replies
6. Shell Programming and Scripting
hi folk i need your help to find one logic....
i have error log same as any other error logs which get populated by no of events and errors...
but i need to grep the last occured errors.. which cant be duplicate.
here is my script.
========================
#!/usr/bin/ksh
grep -i... (3 Replies)
Discussion started by: tapia
3 Replies
7. Shell Programming and Scripting
Hello Team,
if ; then
is there an syntax error above line? i got error like
can i know how to resolve this error?
Regards (2 Replies)
Discussion started by: rocking77
2 Replies
8. Shell Programming and Scripting
Hi,
Need to grep for a error in a log file but between two timestamps / patterns
example: in the below log file if the given timestamps are 14:00 to 15:00
and m greping for error only error3 should come in the output.
pls note that apart from timestamps printed, the log file has no... (2 Replies)
Discussion started by: amicableperson
2 Replies
9. Shell Programming and Scripting
I am using a command but getting an error despite of modifying it many times.
Pattern=`grep story file|cut -c 19-24`
Where as 'story' is the pattern to be matched and i want to cut the value of characters ranging from 19 to 24 when this pattern is found in a variable.
file consists of below... (11 Replies)
Discussion started by: pratima.kumari
11 Replies
10. Shell Programming and Scripting
i have this line of code that looks for the same file if it is currently running and returns the count.
`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l`
basically it is assigned to a variable
ISRUNNING=`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh |... (6 Replies)
Discussion started by: wtolentino
6 Replies
LEARN ABOUT X11R4
pbmreduce
pbmreduce(1) General Commands Manual pbmreduce(1)
NAME
pbmreduce - read a portable bitmap and reduce it N times
SYNOPSIS
pbmreduce [-floyd|-fs|-threshold ] [-value val] N [pbmfile]
DESCRIPTION
Reads a portable bitmap as input. Reduces it by a factor of N, and produces a portable bitmap as output.
pbmreduce duplicates a lot of the functionality of pgmtopbm; you could do something like pnmscale | pgmtopbm, but pbmreduce is a lot
faster.
pbmreduce can be used to "re-halftone" an image. Let's say you have a scanner that only produces black&white, not grayscale, and it does a
terrible job of halftoning (most b&w scanners fit this description). One way to fix the halftoning is to scan at the highest possible res-
olution, say 300 dpi, and then reduce by a factor of three or so using pbmreduce. You can even correct the brightness of an image, by
using the -value flag.
OPTIONS
By default, the halftoning after the reduction is done via boustrophedonic Floyd-Steinberg error diffusion; however, the -threshold flag
can be used to specify simple thresholding. This gives better results when reducing line drawings.
The -value flag alters the thresholding value for all quantizations. It should be a real number between 0 and 1. Above 0.5 means darker
images; below 0.5 means lighter.
All flags can be abbreviated to their shortest unique prefix.
SEE ALSO
pnmenlarge(1), pnmscale(1), pgmtopbm(1), pbm(5)
AUTHOR
Copyright (C) 1988 by Jef Poskanzer.
02 August 1989 pbmreduce(1)