02-09-2015
Thanks all. Next time i will put the real copy of sample file(format) so that thing can be solved at one shot
It is working now.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need only those records which has $2 equal to "DEF" independent of case (i.e upper or lower)
nawk -F"," '$2 ~ //{print $0}' file
This returns 3rd record also which i dont want
I tried this but this doesnt work as expected.
nawk -F"," '$2 == ""{print $0}' file
i dont... (3 Replies)
Discussion started by: pinnacle
3 Replies
2. Shell Programming and Scripting
Hi folks,
I have a text file that I need to parse, and I cant figure it out. The source is a report breaking down softwares from various companies with some basic info about them (see source snippet below). Ultimately what I want is an excel sheet with only Adobe and Microsoft software name and... (5 Replies)
Discussion started by: rowie718
5 Replies
3. Shell Programming and Scripting
I have thousands of tables compiled in a single txt document that I'm parsing with AWK. Scattered throughout the document in random sections I would like to parse out the sections that look like this:
1 Seq. Descrição do bem Tipo do bem Valor do bem (R$)
2 1 LOCALIZADO ANA RUA PESSEGO N 96... (3 Replies)
Discussion started by: daveyabe
3 Replies
4. Shell Programming and Scripting
.......... (1 Reply)
Discussion started by: Antonlee
1 Replies
5. Shell Programming and Scripting
Experts:
LINE1 :This is line one The FIRST line of the file.
LINE2 :This is line two
LINE3 :This is line three with 8 fileds
LINE4 :This is line four
LINE5 :This is line five
LINE6 :This is line six with 8 fileds
I want to delete line 1, and then process the file and want to print lines... (2 Replies)
Discussion started by: rveri
2 Replies
6. Shell Programming and Scripting
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)
Discussion started by: horsepower
3 Replies
7. Shell Programming and Scripting
I have the need to match up the lat / lon from a fileA with the lat / lon and value from fileB. fileA is a small subset of fileB
I have the following awk script but it prints out all the contents from fileB. I only need the matches.
awk 'FNR==NR {A=$NF; next} {A=$NF} END{for(i in A) printf... (10 Replies)
Discussion started by: ncwxpanther
10 Replies
8. Shell Programming and Scripting
I have the following script in place that will print the values of FileB when the first column matches File A's first column.
awk 'NR == FNR {A=$2;next};$1 in A {print $1,$NF,$2,$3,A}' FileA FileB
Input
FileA
3013 4
FileB
3013 2009 03 JUNK 43
Output
3013 43 2009 03 (2 Replies)
Discussion started by: ncwxpanther
2 Replies
9. UNIX for Beginners Questions & Answers
I have a file.txt containing the following:
Query= HWI-ST863:386:C5Y8UACXX:3:2302:16454:89688 1:N:0:ACACGAAT
Length=100
Score E
Sequences producing significant alignments: (Bits) Value
... (2 Replies)
Discussion started by: tons92
2 Replies
10. Shell Programming and Scripting
In the awk below I am trying to output those lines that Match between file1 and file2, those Missing in file1, and those missing in file2. Using each $1,$2,$4,$5 value as a key to match on, that is if those 4 fields are found in both files the match, but if those 4 fields are not found then missing... (0 Replies)
Discussion started by: cmccabe
0 Replies
LEARN ABOUT DEBIAN
imager::largesamples
Imager::LargeSamples(3pm) User Contributed Perl Documentation Imager::LargeSamples(3pm)
NAME
Imager::LargeSamples - track/document large sample support
SYNOPSIS
# make a large sample image
my $im = Imager->new(..., bits => 16);
# call some method
my $result = $im->$method(...);
# was the image modified at its full sample size
DESCRIPTION
Imager has had in-memory support for large samples for years now, but many methods still don't work at the higher sample size when supplied
with a large sample image.
This document will track which methods support large samples and which don't, for future improvements.
Support by method
Method Support Notes
------ ------- -----
arc Partial [1]
box Partial [2]
circle Partial [1]
convert Full
copy Full
crop Full
difference Full
filter Partial Depends on the filter.
flip Full
flood_fill Partial [1]
getpixel Full
getsamples Full
getscanline Full
map None
masked Full
matrix_transform
Full
paste Full
polygon Partial [1]
polyline None
read Partial See L<File format large sample support>
read_multi Partial See L<File format large sample support>
rotate Full
rubthrough Full
scale Partial Some qtypes support large samples
scaleX None
scaleY None
setpixel Full
setscanline Full
string Full Preserves large samples, but most font drivers
generate 8 or fewer bits of levels of coverage.
transform None
transform2 None
write Partial See L<File format large sample support>
write_multi Partial See L<File format large sample support>
[1] filling an area using the fill parameter works at the full depth of the image, using filled => 1 and color works at 8-bits/sample
[2] box() will fill the area at the supplied color, but outline at 8-bits/sample.
File format large sample support
Format Format samples Imager support
------ -------------- --------------
BMP 8 8
GIF 8 8
ICO 8 8
JPEG 8, 12 8
PBM 1 1
PGM/PPM 1-16 read any, writes 8, 16
PNG 1, 2, 4, 8, 16 8
RAW 8
SGI 8, 16 8, 16
TGA 8 8
TIFF (many) read/write 8, 16, 32 contig rgb/grey images
read/write bi-level
read/write 4/8 paletted images
Filter larger sample support
Filter Large sample support
------ --------------------
autolevels No
bumpmap No
bumpmap_complex No
contrast No
conv Yes
fountain Yes
gaussian Yes
gradgen No
hardinvert Yes
mosaic No
postlevels No
radnoise No
turbnoise No
unsharpmask Yes
watermark No
AUTHOR
Tony Cook <tonyc@cpan.org>
perl v5.14.2 2011-06-06 Imager::LargeSamples(3pm)