Thanks for answering my question, I greatly appreciated! but the output is not 100% I want, see the last line, nas_m is on the last column. while i want all the nas show up on the second column.
Gurus,
I am struggling with a issue and thought I could use some of your expertise.
Need Help with this
I have a flat file that has millions of records
24|john|account ~ info |56|
25|kuo|account ~ journal |58|
27|kim|account ~ journal |59|
28|San|account ~
journal |60|... (3 Replies)
z=9
i=0
h=02
min=55
while
do
cat /home/barmecha/test | grep $h:$min >> /home/barmecha/file1
min=`expr $min + 1`
if ;
then
h=`expr $h + 1`
fi
i=`expr $i + 1`
done
i have a log file with time wise log in it, this script help me to pull out logs of the give time interval...but the... (8 Replies)
Hi Friends,
Need some help in AWK.
Working on AIX 5
Have been trying the following functionality to make the record length fixed:
if( length(record) < 300 )
{
printf("%-300s\n", record);
}
In my opinion it will apply some fillers in the end.
Its is not making any... (4 Replies)
Hi
I use the following code to read the file and to fix the length of the column of the record in the file 'Sample.txt'
ls Samp* | awk '
{ a=$1 }
END{
FS="n"
for(i=1;i<=NR;i++)
{
while( getline < a )
{
f1=$0;
print("Line::",f1);
f2=substr(f1,1,10)
print("Field1::",f2);... (10 Replies)
I have a script which will mask the 9th and 15th column in a record starting with BPR.
The record looks like below before my script
BPR*C*160860.04*C*ACH*CTX*01*072000326*DA*1548843*3006968523**01*071000013*DA*5529085*100323*VEN
The record will be masked after my script parses this... (19 Replies)
Hi
I am dealing with the following string:
Date: Thur, 13 March 2011 01:01:10 +0000
I asked for help in another topic that converted a similar string:
Date: Thur, 13 March 2011 9:50 AM
To a 24 hr standard. The problem is that it comes out as:
Date: Thur, 13 March 2011 9:50:00 +0000... (4 Replies)
Good morning, fellows. I would need to ask for your help in editing my awk script. Here is the original version:
BEGIN { printf ("CRYST1 200.000 200.000 200.000 90.00 90.00 90.00 P 1 1\n")
maxatoms=1000
natom=0
found_struct = 0
found_bond = 0
}
{
if( NF == 5 )
{
foundff=0
natom++... (9 Replies)
Hi ,
I'd like to give you a little bit idea about my script which is used to get any generated file from remote server using ftp session then organized those file into directories based on their date ( at the end I supposed to have 1 months directories 20130401 20130402 ....20130430 ,... (27 Replies)
Hi All,
I have problem in the middle of implementing to users, whereby the complaint is all about the decimal place which is too long. I need two decimal places only, but the outcome from command is always fixed to 6.
See the sample :
before:
Sort Total
Site Sort SortName Parts ... (3 Replies)
Hi all...
i have been trying to make this work but I have been failing for 6 hours ..
I know it should be something simple that I am missing to it would be great if you can help me ...
I want to subtract a fixed value (lets set 1) from any value >=1 from the whole file
my file looks like
... (4 Replies)
Discussion started by: A-V
4 Replies
LEARN ABOUT CENTOS
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)