4 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Legends,
how do i get 3rd week of friday in every month and execute a particular script say /tmp/abc.sh ???
i think after "cal" we can traverse through using some for loop.:wall:
pls help me.
Dosanjh (8 Replies)
Discussion started by: sdosanjh
8 Replies
2. Shell Programming and Scripting
Hi,
I need to get the date of last friday of every month. how can i achieve this ? please guide me.
Thanks in advance (3 Replies)
Discussion started by: apsprabhu
3 Replies
3. Shell Programming and Scripting
Help please! I need to read the calendar and put the date of the third Friday of each month into a variable for comparison in an "if" statement. How would I do this?
Thnx,
leslie02 (10 Replies)
Discussion started by: leslie02
10 Replies
4. Shell Programming and Scripting
I am trying to write a script that shows every Friday in a month.
I used
cal $1 $2 | grep -v "^$" | awk '{print $6}'
It doesn't work for the frist week of Friday because calendar command output has some spaces in the first line and awk '{print $6}' doesn't work. Anybody help
me with this... (3 Replies)
Discussion started by: LAY
3 Replies
LEARN ABOUT SUSE
gamma4scanimage
gamma4scanimage(1) SANE Scanner Access Now Easy gamma4scanimage(1)
NAME
gamma4scanimage - create a gamma table for scanimage
SYNOPSIS
gamma4scanimage gamma [shadow [highlight [maxin [maxout]]]]
DESCRIPTION
The tool gamma4scanimage creates a gamma table in the format expected by scanimage. You can define a gamma, a shadow and a highlight value.
You also can specify the size (maxin) and maximum output value (maxout) of the gamma table.
gamma is a floating point value, neutral value is 1.0, if the value is larger than 1.0 then the image gets brighter.
shadow defines the minimum input value that is necessary to create an output value larger than zero. shadow has to be in the range
[0..maxin]. Its default value is 0.
highlight defines the maximum input value that produces an output value smaller than maxout. highlight has to be in the range [0..maxin],
highlight has to be larger than shadow. Its default value is the same as maxin (16383 if not set).
maxin defines the size of the gamma table. The size depends on the scanner/backend. If the scanner uses 8 bits gamma input then maxin has
to be set to 255, for 10 bits 1023, for 12 bits 4095, for 14 bits 16383. The default is 16383. To find out what value maxin has to be call
scanimage with a very large gamma table [0]0-[99999]255 then scanimage prints an error message with the needed size of the gamma table.
maxout defines the maximum output value. Take a look at the output of scanimage -h to find out what maxout has to be. The default value is
255.
EXAMPLE
scanimage --custom-gamma=yes --gamma-table `gamma4scanimage 1.8 0 11500 16383 255` >image.pnm
SEE ALSO
scanimage(1)
AUTHOR
Oliver Rauch
EMAIL-CONTACT
Oliver.Rauch@Rauch-Domain.DE
10 Jul 2008 gamma4scanimage(1)