Sponsored Content
Full Discussion: Case question
Top Forums Shell Programming and Scripting Case question Post 302883022 by Yoav on Friday 10th of January 2014 12:17:07 PM
Old 01-10-2014
Hi Robin,
Thank you for your quick feedback.
Its will work fine in case i will go through all the steps.
In reality i have more than 10 steps. To keep this senario simple i have mentioned steps 1-3 .
Its will not solve the problem in case i need to run just between steps 2-3 ( or between any other steps which are not all the steps).
Thanks again for sharing you time.
Yoav
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

lower case to upper case string conversion in shell script

How can convert a Lower case variable value to an upper case in the kron shell script. (3 Replies)
Discussion started by: dchalavadi
3 Replies

2. Shell Programming and Scripting

To CASE or not to CASE, this is my question!

Hi I'm trying to display the permissions, owner and group of a file. So far so good! Script 4 #To determine the permissions, owner and group of a file #Syntax: script4 filename LINE=`ls -ltr $1` OWNER=`echo $LINE | awk '{print $3}'` GROUP=`echo $LINE | awk '{print $4}'`... (1 Reply)
Discussion started by: olimiles
1 Replies

3. Shell Programming and Scripting

Script needed to select and delete lower case and mixed case records

HELLO ALL, URGENTLY NEEDED A SCRIPT TO SELECT AND DELETE LOWER AND MIXED CASE RECORDS FROM A COLUMN IN A TABLE. FOR EXAMPLE : Table name is EMPLOYEE and the column name is CITY and the CITY column records will be: Newyork washington ... (1 Reply)
Discussion started by: abhilash mn
1 Replies

4. Shell Programming and Scripting

case question

hi all i have script call tmp1 run_object1 run_object2 case $? in 0) ;; *) echo "error try again" read an ;; esac can some one please explain to me from the case till the end of the script ? thanks (2 Replies)
Discussion started by: naamas03
2 Replies

5. Shell Programming and Scripting

data array needs to change upper case to lower case

Hi all, i have a data array as followes. ARRAY=DFSG345GGG ARRAY=234FDFG090 ARRAY=VDFVGBGHH so on.......... i need all english letters to be change to lower case. So i am expecting to see ARRAY=dfsg345ggg ARRAY=234fdfg090 ARRAY=vdfvgbghh so on........ If i have to copy this data in... (8 Replies)
Discussion started by: usustarr
8 Replies

6. Shell Programming and Scripting

[Solved] Change Upper case to Lower case in C shell

Is there a command that can switch a character variable from UPPER case to lower case? like foreach AC ( ABC BCD PLL QIO) set ac `COMMAND($AC)` ... end Thanks a lot! (3 Replies)
Discussion started by: rockytodd
3 Replies

7. Shell Programming and Scripting

Question about REGEX Patterns and Case Sensitivity?

Hello All, I'm in the middle of a script and I'm doing some checks with REGEX (i.e. using the '"shopt -s nocasematch" that at least the first one should print "FALSE" but it prints "TRUE"..? For Example: #!/bin/bash MY_VAR="HELLO" ### This prints "TRUE" PATTERN_1="^*" if ] then... (5 Replies)
Discussion started by: mrm5102
5 Replies

8. Shell Programming and Scripting

Awk-sed : Question getting case sensitive filed.

Experts, Good day!, I have following data, I want to filter 3rd Field, if it is in UPPERCASE, aa aa1 HOST1 aa bb1 host2 aa cc1 SERV1 aa dd1 SERV2 ab aa1 host3 The output should be: aa aa1 HOST1 aa cc1 SERV1 aa dd1 SERV2 (2 Replies)
Discussion started by: rveri
2 Replies

9. Shell Programming and Scripting

Change first letter of a word from lower case to upper case

Hi all, I am trying to find a way to change first letter in a word from lower case to upper case. It should be done for each first word in text or in paragraph, and also for each word after punctuation like . ; : ! ?I found the following command sed -i 's/\s*./\U&\E/g' $@ filenamebut... (7 Replies)
Discussion started by: georgi58
7 Replies
iwidgets::feedback(1)						  [incr Widgets]					     iwidgets::feedback(1)

__________________________________________________________________________________________________________________________________________________

NAME
iwidgets::feedback - Create and manipulate a feedback widget to display feedback on the current status of an ongoing operation to the user. SYNOPSIS
iwidgets::feedback pathName ?options? INHERITANCE
itk::Widget <- iwidgets::Labeledwidget <- iwidgets::Feedback STANDARD OPTIONS
background cursor foreground highlightColor highlightThickness See the "options" manual entry for details on the standard options. INHERITED OPTIONS
labelBitmap labelFont labelImage labelMargin labelPos labelText labelVariable sticky See the "labeledwidget" class manual entry for details on the inherited options. WIDGET-SPECIFIC OPTIONS Name: barcolor Class: BarColor Command-Line Switch: -barcolor Specifies the color of the status bar, in any of the forms acceptable to Tk_GetColor. The default is DodgerBlue. Name: barheight Class: BarHeight Command-Line Switch: -barheight Specifies the height of the status bar, in any of the forms acceptable to Tk_GetPixels. The default is 20. Name: troughColor Class: TroughColor Command-Line Switch: -troughcolor Specifies the color of the frame in which the status bar sits, in any of the forms acceptable to Tk_GetColor. The default is white. Name: steps Class: Steps Command-Line Switch: -steps Specifies the total number of steps for the status bar. The default is 10. DESCRIPTION
The iwidgets::feedback command creates a widget to display feedback on the current status of an ongoing operation to the user. Display is given as a percentage and as a thermometer type bar. Options exist for adding a label and controlling its position. METHODS
The iwidgets::feedback command creates a new Tcl command whose name is pathName. This command may be used to invoke various operations on the widget. It has the following general form: pathName option ?arg arg ...? Option and the args determine the exact behavior of the com- mand. The following commands are possible for scrolledtext widgets: WIDGET-SPECIFIC METHODS pathName cget option Returns the current value of the configuration option given by option. Option may have any of the values accepted by the scrolled- html command. pathName configure ?option? ?value option value ...? Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available options for pathName (see Tk_ConfigureInfo for information on the format of this list). If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. Option may have any of the values accepted by the iwidgets::feedback command. pathName reset Reset the current number of steps completed to 0, and configures the percentage complete label text to 0% pathName step ?inc? Increase the current number of steps completed by the amount specified by inc. Inc defaults to 1. EXAMPLE
package require Iwidgets 4.0 iwidgets::feedback .fb -labeltext "Status" -steps 20 pack .fb -padx 10 -pady 10 -fill both -expand yes for {set i 0} {$i < 20} {incr i} { .fb step after 500 } ACKNOWLEDGEMENTS
Sam Shen This code is based largely on his feedback.tcl code from tk inspect. The original feedback code is copyright 1995 Lawrence Berkeley Laboratory. AUTHOR
Kris Raney KEYWORDS
feedback, widget Tk iwidgets::feedback(1)
All times are GMT -4. The time now is 06:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy