![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| If statement not working | Hazmeister | Shell Programming and Scripting | 6 | 12-13-2007 04:33 AM |
| putting ftp in korn function - no longer working | brdholman | Shell Programming and Scripting | 4 | 10-17-2007 06:05 PM |
| find/if statement not working | geomonap | Shell Programming and Scripting | 12 | 12-16-2005 09:56 AM |
| korn shellscript execution context - exit statement | richgi | UNIX for Dummies Questions & Answers | 3 | 03-30-2005 01:48 AM |
| Korn vs Bash | jpprial | UNIX for Dummies Questions & Answers | 5 | 10-02-2001 11:47 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
korn shell to bash - statement not working
Everything else seems to be working, but this isn't. Is it the "cat..." that is wrong of the condition? Thanks.
cat tc_result.txt | while read LINE do if [ "$LINE" == "*File*" ] then let "files_run += 1"; echo "inside the if loop" # save current filetype case $LINE in "Running Engine to produce ECF File") file_type="ECF";; "Running Engine to produce AFP File") file_type="AFP";; "Running Engine to produce PostScript File") file_type="PostScript";; "Running Engine to produce Metacode File") file_type="Metacode";; "Running Engine to produce PCL File") file_type="PCL";; "Running Engine to produce PDF File") file_type="PDF";; "Running Engine to produce PPML File") file_type="PPML";; "Running Engine to produce VIPP File") file_type="VIPP";; "Running Engine to produce RTF File") file_type="RTF";; "Running Engine to produce 3211 File") file_type="3211";; "Running Engine to produce VPS File") file_type="VPS";; "Running Engine to produce HTML File") file_type="HTML";; esac else |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|