Sponsored Content
Full Discussion: While $$$$$$
Top Forums Shell Programming and Scripting While $$$$$$ Post 302228752 by rollthecoin on Monday 25th of August 2008 10:45:23 AM
Old 08-25-2008
While $$$$$$

db2 connect...

LINE=........

while [ "$LINE" != 0 ]
do
read LINE
A=`echo $LINE|awk -F/ '{print $1}'`
B=`echo $LINE|awk -F/ '{print $2}'`
done

echo $A
echo $B
db2 terminate
script ends here

I want to substitute values like

10-hjhj 20=hj 307fgr/45fdg 85fgf56 2fg-lk
10-h 20=hj 307fgr/45gfdg 85fgfdf3453456 2fg-lk
10-hdfgdfjhj 20=hj 307fgdfggr/45fdg 85fgf56 2fg-lk

I want to get the value in $A as 10-hjhj 20=hj 307fgr
and $B as 45fdg 85fgf56 2fg-lk

go to a particular directory cd A/D/$A/$B

then proceed with the next input
$A as 10-h 20=hj 307fgr
$B as 45gfdg 85fgfdf3453456 2fg-lk

go to a particular directory cd A/D/$A/$B
.
.
.
Please help
 
IMAGICKDRAW.LINE(3)							 1						       IMAGICKDRAW.LINE(3)

ImagickDraw::line - Draws a line

SYNOPSIS
bool ImagickDraw::line (float $sx, float $sy, float $ex, float $ey) DESCRIPTION
Warning This function is currently not documented; only its argument list is available. Draws a line on the image using the current stroke color, stroke opacity, and stroke width. PARAMETERS
o $sx - starting x coordinate o $sy - starting y coordinate o $ex - ending x coordinate o $ey - ending y coordinate RETURN VALUES
No value is returned. EXAMPLES
Example #1 ImagickDraw.line(3) <?php function line($strokeColor, $fillColor, $backgroundColor) { $draw = new ImagickDraw(); $draw->setStrokeColor($strokeColor); $draw->setFillColor($fillColor); $draw->setStrokeWidth(2); $draw->setFontSize(72); $draw->line(125, 70, 100, 50); $draw->line(350, 170, 100, 150); $imagick = new Imagick(); $imagick->newImage(500, 500, $backgroundColor); $imagick->setImageFormat("png"); $imagick->drawImage($draw); header("Content-Type: image/png"); echo $imagick->getImageBlob(); } ?> PHP Documentation Group IMAGICKDRAW.LINE(3)
All times are GMT -4. The time now is 08:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy