Sponsored Content
Top Forums Shell Programming and Scripting Variable not found error in while loop Post 302939831 by TomG on Monday 30th of March 2015 01:32:04 AM
Old 03-30-2015
Hi Corona688,

Thank You so much , Removal of space before and after the = helped.

Thank You for the valuable suggestions
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

variable not found with loop?

I cannot seem to pass the value of the variable assigned in the "else" statment below to an "if" statement outside of the loop. When I debug using "set -x", I find that the value of "$A" is empty. Is there something I'm missing here? Code is below: do if ] then echo "Good Match"... (2 Replies)
Discussion started by: douknownam
2 Replies

2. Shell Programming and Scripting

file not found error during loop

Hi, I have a strange problem and I'm sure its because I'm doing something stupid. When I loop through all of the files in a directory they cannot be found. Any help would be greatly appreciated. Thanks, -E $ touch a.txt $ touch b.txt $ ls a.txt b.txt $ for f in `ls` ; do... (3 Replies)
Discussion started by: earls
3 Replies

3. Shell Programming and Scripting

Loop through between 2 found lines

Hi frnd , hv nice week ahead, in shell script i found 2 words as below 1 ) targ_found=`sed -n \`echo $line_no\`p sesslog.txt | grep -ic 'Targ Rowid'` 2 ) bracket_found=`sed -n \`echo $line_no\`p sesslog.txt | grep -wc ')'` now we got he line number of 2 words. now i want to... (1 Reply)
Discussion started by: Gopal_Engg
1 Replies

4. UNIX for Dummies Questions & Answers

Loop on array variable returning error: 0 not found

I'm guessing i have a syntax error. I'm not sure it get's past the the while condition. I get an error 0 not found. Simple loop not sure what I'm doing wrong. #!/usr/bin/ksh set -A MtPtArray /u03 /u06 tUbound=${#MtPtArray } echo $tUbound i=0 while ($i -lt $tUbound) do print... (4 Replies)
Discussion started by: KME
4 Replies

5. Shell Programming and Scripting

Syntax error: Bad for loop variable

Hi Can any one help, I'm trying to run a script that beeps out the ip address from the PC internal speaker with the following script. It keeps throwing the error "Syntax error: Bad for loop variable" on line 16. I know its picking up the IP ADDRESS correctly. Any ideas on whats wrong. I'm... (3 Replies)
Discussion started by: dman
3 Replies

6. Shell Programming and Scripting

Variable not found error for a variable which is returned from stored procedure

can anyone please help me with this: i have written a shell script and a stored procedure which has one OUT parameter. now i want to use that out parameter as an input to the unix script but i am getting an error as variable not found. below are the unix scripts and stored procedure... ... (4 Replies)
Discussion started by: swap21783
4 Replies

7. Shell Programming and Scripting

Syntax error: Bad for loop variable

I'm getting an error while running this script. Need help. set -x verbose #echo on clear #clear the screen USERNAME="bbb" PASSWORD="password" SERVER="192.168.1.100" WAIT_TIME=300 FILE_PATH="/home/users/xxx/MMM" # local directory to pickup *.dat file REMOTE_PATH="/Drop_off/xxx/yyy" #... (17 Replies)
Discussion started by: clgz2002
17 Replies

8. Shell Programming and Scripting

while loop error. (command not found)

can any1 please tell me what is problem with following code: i=1; cat test| while read CMD; do Var$i=$CMD; or Var$i=$(echo $CMD) ; let i++ doneI keep getting error : line 4: Var1=sometext: command not found (2 Replies)
Discussion started by: kashif.live
2 Replies

9. UNIX for Dummies Questions & Answers

Variable not found error

Hi, I get a "FILEPATH: not found" error on the 3rd line and the line where it is within the case. Any idea as to why I'm getting this error time and time again? Oh and FILEPATH will store the directory of the file. I appreciate any help! IAM=`basename $0` RC=0 FILEPATH = ""... (1 Reply)
Discussion started by: MIA651
1 Replies

10. Shell Programming and Scripting

Continue the loop if the value is not found

Dear Help, Is it possible to continue the loop by going to the next available value, if the 'expected value' is not found. I have a list of values which might not get incremented by fixed value and hence the loop could break and the script could terminate. Any suggestion is appreciated. ... (1 Reply)
Discussion started by: Indra2011
1 Replies
WRITETYPE(1)						      General Commands Manual						      WRITETYPE(1)

NAME
WriteType - application designed to help students write more easily SYNOPSIS
writetype [OPTION] ... FILE DESCRIPTION
WriteType is a simple word processor designed to help young students write more easily and accurately. It offers spelling suggestions as students type, making the process easier and less frustrating. It also provides the ability to read back text through either an eSpeak or a Festival backend. In addition, there are special tools for teachers, and the entire application is easily translatable.1 WriteType is Free Software / Open Source, and is released under the GNU GPL license. OPTIONS
-l, --lang Set the language for this session -t, --tts-engine Set the tts engine for this session. Changes in the settings during this session will override this. -?, --help Display this help and exit FEATURES
Word Completion - As students type, word suggestions appear on the right-hand side of the screen to complete the word being typed. Click- ing on the desired word will finish the word. WriteType will also learn a student's habits over time and make more relevant suggestions based on what has already been written. Reading Back the Document - WriteType will read back written text, allowing students to catch errors they may not have caught reading it back themselves. Highlighting - Sections of the document can be quickly highlighted while typing or while listening to the document being read back. This lets students quickly flag areas they need to go back and review. Grammar checking - WriteType will underline simple grammar and formatting mistakes in the document, and offer to make the necessary revi- sion. Auto-correction - Common errors, such as typing isnt instead of isn't, will be corrected automatically without the need for intervention. Distraction-free mode If the typist has difficulty maintaining concentration while typing, distraction-free mode is an alternative inter- face that displays full screen and only includes the text box and the list of completions. Add a list of custom words In some situations, the default list of words is not sufficient, so the system allows the user to add new ones. Even if the words already exist in the list of words, adding them will bring them to the top of the list of suggestions. AUTHOR
WriteType was made by Max Shinn <max@bernsteinforpresident.com> SEE ALSO
You can find more information at http://writetype.bernsteinforpresident.com/ BUGS
Probably. 1.2.130 WRITETYPE(1)
All times are GMT -4. The time now is 06:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy