Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Hi All,
I have working (Perl) code to combine 2 input files into a single output file using the join function that works to a point, but has the following limitations:
1. I am restrained to 2 input files only.
2. Only the "matched" fields are written out to the "matched" output file and... (1 Reply)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
The system don't boot.
on the screen appears following:
press enter to maintenance (or type CTRL-D to continue)...I checked with format command.
... the slices "0-root","1-swap","2-backup" exist.
...the slises "3-var","6-usr" -unassigned. :( (16 Replies)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Dear Ladies & Gents,
I have a requirement to delete all the log files in /var/log/test directory that are older than 10 days and their first line begin with "MSH" or "<?xml" or "FHS". I've put together the following BASH script, but it's erroring out:
for filename in $(find /var/log/test... (2 Replies)
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
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)