I am passing a string as argument. Need to check if it contains "-".
If it contains "-" then check if it contains "-r" .If Yes then print some message else check if it contains "-t".If yes print some message. How this check can be done using shell script?
How I can do this by using IF OR... (7 Replies)
hi,
I have
* an IBM P550 machine,
* an AIX 5.3 running on it and
* an oracle database, already installed on it.
The problem (or question of my own) is:
Oracle tns listener, "CT_LISTENER", and the enterprise manager (EM) of the instance, which is uniq instance and called... (0 Replies)
hi,
I have a problem about the Oracle related components. I'm not able to find any answer yet, and waiting for your responses...
Here is the configuration of my system:
* an IBM P550 machine,
* an AIX 5.3 running on it and
* an oracle database, already installed on it.
The problem (or... (1 Reply)
Hi,
I have a log file, where i am required to identify the line number, where a particular string/line appears in the log file.
And then copy 200 lines above that line number to a new file.
Can someone provide pointers on how to write this script or what command to be used ?
Any... (2 Replies)
Hi,
I have a log file, where i am required to identify the line number, where a particular string/line appears in the log file.
And then copy 200 lines above that line number to a new file.
Can someone provide pointers on how to write this script or what command to be used ?
Any... (1 Reply)
logs:
"/home/abc/public_html/index.php"
"/home/abc/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
how to use "cut" or "awk" or "sed" to get the following result:
abc
abc
xyz
xyz
xyz (8 Replies)
Hello.
Following recommendations for one of my threads, this is working perfectly :
#!/bin/bash
CNT=$( grep -c -e "some text 1" -e "some text 2" -e "some text 3" "/tmp/log_file.txt" )
Now I need a grep success for some thing like :
#!/bin/bash
CNT=$( grep -c -e "some text_1... (4 Replies)
Okay, so I have had this problem on openSUSE, and Debian systems now and I am hoping for a little help. I think it has something to do with Python but I couldn't find a proper Python area here.
I am trying to redirect the output of "ssh suse-server 'python -V'" to a file. It seems that no matter... (3 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)
Discussion started by: Hiroshi
2 Replies
LEARN ABOUT PHP
gmagickdraw
GMAGICKDRAW(3) 1 GMAGICKDRAW(3)The GmagickDraw classINTRODUCTION CLASS SYNOPSIS
GmagickDraw
GmagickDraw
Methods
o public GmagickDraw GmagickDraw::annotate (float $x, float $y, string $text)
o public GmagickDraw GmagickDraw::arc (float $sx, float $sy, float $ex, float $ey, float $sd, float $ed)
o public GmagickDraw GmagickDraw::bezier (array $coordinate_array)
o public GmagickDraw GmagickDraw::ellipse (float $ox, float $oy, float $rx, float $ry, float $start, float $end)
o public void GmagickDraw::getfillcolor (void )
o public float GmagickDraw::getfillopacity (void )
o public string GmagickDraw::getfont (void )
o public float GmagickDraw::getfontsize (void )
o public int GmagickDraw::getfontstyle (void )
o public int GmagickDraw::getfontweight (void )
o public void GmagickDraw::getstrokecolor (void )
o public float GmagickDraw::getstrokeopacity (void )
o public float GmagickDraw::getstrokewidth (void )
o public int GmagickDraw::gettextdecoration (void )
o public string GmagickDraw::gettextencoding (void )
o public GmagickDraw GmagickDraw::line (float $sx, float $sy, float $ex, float $ey)
o public GmagickDraw GmagickDraw::point (float $x, float $y)
o public GmagickDraw GmagickDraw::polygon (array $coordinates)
o public GmagickDraw GmagickDraw::polyline (array $coordinate_array)
o public GmagickDraw GmagickDraw::rectangle (float $x1, float $y1, float $x2, float $y2)
o public GmagickDraw GmagickDraw::rotate (float $degrees)
o public GmagickDraw GmagickDraw::roundrectangle (float $x1, float $y1, float $x2, float $y2, float $rx, float $ry)
o public GmagickDraw GmagickDraw::scale (float $x, float $y)
o public GmagickDraw GmagickDraw::setfillcolor (string $color)
o public GmagickDraw GmagickDraw::setfillopacity (float $fill_opacity)
o public GmagickDraw GmagickDraw::setfont (string $font)
o public GmagickDraw GmagickDraw::setfontsize (float $pointsize)
o public GmagickDraw GmagickDraw::setfontstyle (int $style)
o public GmagickDraw GmagickDraw::setfontweight (int $weight)
o public GmagickDraw GmagickDraw::setstrokecolor (GmagickPixel $color)
o public GmagickDraw GmagickDraw::setstrokeopacity (float $stroke_opacity)
o public GmagickDraw GmagickDraw::setstrokewidth (float $width)
o public GmagickDraw GmagickDraw::settextdecoration (int $decoration)
o public GmagickDraw GmagickDraw::settextencoding (string $encoding)
PHP Documentation Group GMAGICKDRAW(3)