Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Perl Substition with multiple conditions Post 302240375 by EDALBNUG on Thursday 25th of September 2008 02:40:44 PM
Old 09-25-2008
I tried using () and it still didn't change anything. Is this platform dependent? I think I am using UNIX with c shell right now.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

multiple conditions in if/then

Hello, I am having trouble with the syntax with a conditional statement in a BASH script involving multiple conditions. Any suggestions would be greatly appreciated! if ; then array=("${array}" "$dnNum" ) fi i receive this error: ./testscript: ' (4 Replies)
Discussion started by: grandtheftander
4 Replies

2. Shell Programming and Scripting

multiple if conditions

Guys, Im trying to have a script that evaluates multiple conditions : test.sh: if then echo "host $1" else if then echo "host $1" else echo $1 not valid exit 1 fi when I do ./test.sh brazil1 I get: (4 Replies)
Discussion started by: bashshadow1979
4 Replies

3. Shell Programming and Scripting

If statement with multiple conditions

I have a script that runs on multiple servers. What I want to do is have the script do the following: if $(hostname) is equal to server or server2 then TO_DIR=go else TO_DIR=stop fi I have tried: if if ] Server is hpux. any ideas? (1 Reply)
Discussion started by: cpolikowsky
1 Replies

4. Shell Programming and Scripting

Help regarding multiple conditions

Hi All, I am new to shell scripting. Can any one say what is wrong in this if statement, that uses multiple conditions if then *************** else if ( -z $pcs && "$night_time_calc" > "$night_time" ) then ******************************** ... (4 Replies)
Discussion started by: ssenthilkumar
4 Replies

5. UNIX for Dummies Questions & Answers

Nested if with multiple conditions

Deal Experts I am working on a script to find a date which is 7 days older and follwoing is my approach #!/bin/sh Yr=`date +"%Y"` Mn=`date +"%m"` Md=28 Da=`date +"%d"` echo $Yr echo $Mn echo $Da var1=$Yr$Mn$Da echo "before" $var1 if expr $Da > 7 then Da=`expr $Da - 7`... (3 Replies)
Discussion started by: sweetnsourabh
3 Replies

6. Shell Programming and Scripting

Multiple Conditions Perl if Statement

Hello, I'm trying to put together a script that involves pulling data from a config file. I'm attempting to write an if statement to validate one of the pieces of data from the config file, but I think I'm fat fingering it somehow. $config{VALUE} is being pulled from a config file but can only... (4 Replies)
Discussion started by: Picch
4 Replies

7. UNIX for Dummies Questions & Answers

If + multiple conditions

Hello Unix-Forums! It has been a long time since my last post, but finally I've got a new question: I know in case you can use multiple patterns by case $var in a|b|c|ab) and so on. But how would I place an OR between if ] then ... if ] then ... I want to execute the "..." if... (3 Replies)
Discussion started by: intelinside
3 Replies

8. Shell Programming and Scripting

Using sed and if multiple conditions

Hi I've been trying to get this to work but so far no luck. #!/usr/bin/ksh unset EXP APP=$1 EXP=`sed -n "/${APP}/p" tIclrpt.out |awk '{print $7}'|sed '/^$/d'` EXT=`sed -n "/${i}/p" ${SESLOG} |awk '{print $4}'|grep "${i}"` EXEM=/path/to/fail ACTI=/path/to/success if || then... (10 Replies)
Discussion started by: techy1
10 Replies

9. Shell Programming and Scripting

Multiple conditions in IF

Fellas, Am new to unix os/ and here the situation , I am trying to write multiple condition statement inside if but it throws me a error here is my piece of code , if ] && ] && ] then commands fi error : line 15 : ` can someone please advise me how to fix it Please use... (7 Replies)
Discussion started by: xeccc5z
7 Replies

10. UNIX for Beginners Questions & Answers

Multiple If conditions

I am analyzing one of the scripts written by another person.script is having multiple if conditions and everything are nested.The code is not formatted properly.Is there any way to identify in Unix to identify begin and end of a particular if block? (6 Replies)
Discussion started by: vamsi.valiveti
6 Replies
Gtk2::CellRendererText(3)				User Contributed Perl Documentation				 Gtk2::CellRendererText(3)

NAME
Gtk2::CellRendererText HIERARCHY
Glib::Object +----Glib::InitiallyUnowned +----Gtk2::Object +----Gtk2::CellRenderer +----Gtk2::CellRendererText METHODS
cellrenderer = Gtk2::CellRendererText->new $renderer->set_fixed_height_from_font ($number_of_rows) o $number_of_rows (integer) PROPERTIES
'align-set' (boolean : readable / writable / private) Whether this tag affects the alignment mode 'alignment' (Pango::Alignment : readable / writable / private) How to align the lines 'attributes' (Pango::AttrList : readable / writable / private) A list of style attributes to apply to the text of the renderer 'background' (string : writable / private) Background color as a string 'background-gdk' (Gtk2::Gdk::Color : readable / writable / private) Background color as a GdkColor 'background-set' (boolean : readable / writable / private) Whether this tag affects the background color 'editable' (boolean : readable / writable / private) Whether the text can be modified by the user 'editable-set' (boolean : readable / writable / private) Whether this tag affects text editability 'ellipsize' (Pango::EllipsizeMode : readable / writable / private) The preferred place to ellipsize the string, if the cell renderer does not have enough room to display the entire string 'ellipsize-set' (boolean : readable / writable / private) Whether this tag affects the ellipsize mode 'family' (string : readable / writable / private) Name of the font family, e.g. Sans, Helvetica, Times, Monospace 'family-set' (boolean : readable / writable / private) Whether this tag affects the font family 'font' (string : readable / writable / private) Font description as a string, e.g. "Sans Italic 12" 'font-desc' (Pango::FontDescription : readable / writable / private) Font description as a PangoFontDescription struct 'foreground' (string : writable / private) Foreground color as a string 'foreground-gdk' (Gtk2::Gdk::Color : readable / writable / private) Foreground color as a GdkColor 'foreground-set' (boolean : readable / writable / private) Whether this tag affects the foreground color 'language' (string : readable / writable / private) The language this text is in, as an ISO code. Pango can use this as a hint when rendering the text. If you don't understand this parameter, you probably don't need it 'language-set' (boolean : readable / writable / private) Whether this tag affects the language the text is rendered as 'markup' (string : writable / private) Marked up text to render 'rise' (integer : readable / writable / private) Offset of text above the baseline (below the baseline if rise is negative) 'rise-set' (boolean : readable / writable / private) Whether this tag affects the rise 'scale' (double : readable / writable / private) Font scaling factor 'scale-set' (boolean : readable / writable / private) Whether this tag scales the font size by a factor 'single-paragraph-mode' (boolean : readable / writable / private) Whether or not to keep all text in a single paragraph 'size' (integer : readable / writable / private) Font size 'size-points' (double : readable / writable / private) Font size in points 'size-set' (boolean : readable / writable / private) Whether this tag affects the font size 'stretch' (Pango::Stretch : readable / writable / private) Font stretch 'stretch-set' (boolean : readable / writable / private) Whether this tag affects the font stretch 'strikethrough' (boolean : readable / writable / private) Whether to strike through the text 'strikethrough-set' (boolean : readable / writable / private) Whether this tag affects strikethrough 'style' (Pango::Style : readable / writable / private) Font style 'style-set' (boolean : readable / writable / private) Whether this tag affects the font style 'text' (string : readable / writable / private) Text to render 'underline' (Pango::Underline : readable / writable / private) Style of underline for this text 'underline-set' (boolean : readable / writable / private) Whether this tag affects underlining 'variant' (Pango::Variant : readable / writable / private) Font variant 'variant-set' (boolean : readable / writable / private) Whether this tag affects the font variant 'weight' (integer : readable / writable / private) Font weight 'weight-set' (boolean : readable / writable / private) Whether this tag affects the font weight 'width-chars' (integer : readable / writable / private) The desired width of the label, in characters 'wrap-mode' (Pango::WrapMode : readable / writable / private) How to break the string into multiple lines, if the cell renderer does not have enough room to display the entire string 'wrap-width' (integer : readable / writable / private) The width at which the text is wrapped SIGNALS
edited (Gtk2::CellRendererText, string, string) ENUMS AND FLAGS
enum Pango::Alignment o 'left' / 'PANGO_ALIGN_LEFT' o 'center' / 'PANGO_ALIGN_CENTER' o 'right' / 'PANGO_ALIGN_RIGHT' enum Pango::EllipsizeMode o 'none' / 'PANGO_ELLIPSIZE_NONE' o 'start' / 'PANGO_ELLIPSIZE_START' o 'middle' / 'PANGO_ELLIPSIZE_MIDDLE' o 'end' / 'PANGO_ELLIPSIZE_END' enum Pango::Stretch o 'ultra-condensed' / 'PANGO_STRETCH_ULTRA_CONDENSED' o 'extra-condensed' / 'PANGO_STRETCH_EXTRA_CONDENSED' o 'condensed' / 'PANGO_STRETCH_CONDENSED' o 'semi-condensed' / 'PANGO_STRETCH_SEMI_CONDENSED' o 'normal' / 'PANGO_STRETCH_NORMAL' o 'semi-expanded' / 'PANGO_STRETCH_SEMI_EXPANDED' o 'expanded' / 'PANGO_STRETCH_EXPANDED' o 'extra-expanded' / 'PANGO_STRETCH_EXTRA_EXPANDED' o 'ultra-expanded' / 'PANGO_STRETCH_ULTRA_EXPANDED' enum Pango::Style o 'normal' / 'PANGO_STYLE_NORMAL' o 'oblique' / 'PANGO_STYLE_OBLIQUE' o 'italic' / 'PANGO_STYLE_ITALIC' enum Pango::Underline o 'none' / 'PANGO_UNDERLINE_NONE' o 'single' / 'PANGO_UNDERLINE_SINGLE' o 'double' / 'PANGO_UNDERLINE_DOUBLE' o 'low' / 'PANGO_UNDERLINE_LOW' o 'error' / 'PANGO_UNDERLINE_ERROR' enum Pango::Variant o 'normal' / 'PANGO_VARIANT_NORMAL' o 'small-caps' / 'PANGO_VARIANT_SMALL_CAPS' enum Pango::WrapMode o 'word' / 'PANGO_WRAP_WORD' o 'char' / 'PANGO_WRAP_CHAR' o 'word-char' / 'PANGO_WRAP_WORD_CHAR' SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::CellRenderer COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.12.1 2010-07-05 Gtk2::CellRendererText(3)
All times are GMT -4. The time now is 12:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy