Hello all,
I've a CSV file and need to replace 5th field if its value is "X".
The exact requirement is to replace 5th field (column) with "Y" if
a. it's value is "X" AND
b. the line must start with ABC string
i guess this can be done with awk. Pl help.
For security reasons, the... (2 Replies)
I have a csv file which has three columns
mem no. name surname
1234 John Smith
12345 John Doe
I want to change the mem no. to add TF to the mem no. field i.e.
mem no. name surname
1234TF John Smith
12345TF John Doe
How do you do this for all records in the file? (3 Replies)
Hi
I have a job status csv file. I want to update the status of the job in the file.
Below is the csv file
1,jobname1,in_progress,starttime,somthing,somthing
2,jobname2,completed,starttime,somthing,somthing
3,jobname3,failed,starttime,somthing,somthing... (8 Replies)
I have a .CSV file (file.csv) whose data are all enclosed in double quotes. Sample format of the file is as below:
column1,column2,column3,column4,column5,column6, column7, Column8, Column9, Column10
"12","B000QRIGJ4","4432","string with quotes, and with a comma, and colon: in... (3 Replies)
Hi,
I have a file of csv data, which looks like this:
file1:
1AA,LGV_PONCEY_LES_ATHEE,1,\N,1,00020460E1,0,\N,\N,\N,\N,2,00.22335321,0.00466628
2BB,LES_POUGES_ASF,\N,200,200,00006298G1,0,\N,\N,\N,\N,1,00.30887539,0.00050312... (10 Replies)
hi gurus,
I would like to be able to use awk to process 1 file as such:
abc 1 2 3 4 5 6 7 8 9 10
flags 1 2 4
flags 1 2 5
abc 2 3 4 5 6 7 8 9 10 11
flags 1 2 3
abc 4 5 6 7 8 9 6 7 78 89
flags 1 2 3
flags 1 2 4
flags 1 2 3 4
I would like to be able to print field 1 and 5 when the... (4 Replies)
Hi, all
I need your help and suggestions.
I want to print particular strings in a field of a csv file and show them in terminal. Here is an example of the csv file.
SourceFile,Airspeed,GPSLatitude,GPSLongitude,Temperature,Pressure,Altitude,Roll,Pitch,Yaw... (7 Replies)
What I need is to remove the text from Location_file.txt from each line matching all entries from Remove_location.txt
Location_file.txt
FlowPrePaid, h3nmg1cm2,Jamaica_MTAImageFileFlowPrePaid,h0nmg1cm1, Flow_BeatTest,FlowRockTest
FlowNewTest,FlowNewTest,h0nmg1cm1
PartiallySubscribed,... (3 Replies)
Discussion started by: ketanraut
3 Replies
LEARN ABOUT DEBIAN
swf::bitmap
.::SWF::Bitmap(3pm) User Contributed Perl Documentation .::SWF::Bitmap(3pm)NAME
SWF::Bitmap - Bitmap class
SYNOPSIS
use SWF::Bitmap;
$bitmap = new SWF::Bitmap('filename');
$fill = $shape->addBitmapFill($bitmap);
DESCRIPTION
SWF::Bitmap enables you to add JPG, PNG, GIF and DBL files. It is a helper class most useful for filling shapes (i.e. SWF::Shape objects).
DBL files ('Define Bitmap Lossless') may be produced from PNG or GIF files by using png2dbl or gif2dbl tools.
METHODS
$bitmap = new SWF::Bitmap($filename, [$alpha])
Creates a new SWF::Bitmap object using 'filename'. The alpha parameter represents a filename for opacity data ('alpha' channel), but
only for JPG files. Alpha data files are produced by tool gif2mask. The original GIF used for gif2mask input file containing alpha
information should have same dimensions (width x height) as the JPG file.
$bitmap = newBitmapFromFileHandle($filehandle)
Creates a new SWF::Bitmap object using an open file handle $filehandle . This way you could use STDIN, piped data etc. etc. for input.
A simple example:
open (PICT,'flowers.jpg') or die;
$bmp = newBitmapFromFileHandle SWF::Bitmap(PICT);
# .....
$m->save("my_flowers.swf");
close (PICT);
# Please note: do not close the PICT file too early.
$bitmap = newSWFDBLBitmap SWF::Bitmap($filename)
Creates a new SWF::Bitmap object using DBL file. Use this constructor if you have a file with DBL data, but not with .dbl filename
extension.
$bitmap = newSWFJpegBitmap SWF::Bitmap($filename)
Creates a new SWF::Bitmap object using JPG file. Use this constructor if you have a file with JPG data, but not with .jpg or .jpeg
filename extension.
$bitmap = newSWFJpegWithAlpha SWF::Bitmap($filename,$alpha_filename)
Creates a new SWF::Bitmap object using JPG file similar newSWFJpegBitmap() with additional opacity information in 'alpha' file. Use
this constructor if you have a file with JPG data, but not with .jpg or .jpeg filename extension and if there is opacity information
available in 'alpha_filename' file. Alpha data files are produced by gif2mask tool. The original GIF file containing alpha information
used for gif2mask input should have same dimensions as the JPG file.
$width = $bitmap->getWidth();
Returns width of bitmap in pixels.
$height = $bitmap->getHeight();
Returns height of bitmap in pixels.
AUTHOR
Soheil Seyfaie (soheil@netcom.ca), Albrecht Kleine and developers of ming.sourceforge.net
SEE ALSO
SWF, SWF::Fill, SWF::Shape, SWF::Button, SWF::Constants, png2dbl, gif2dbl, gif2mask
perl v5.14.2 2011-10-26 .::SWF::Bitmap(3pm)