![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Method to exit a for loop | Rohini Vijay | Shell Programming and Scripting | 2 | 11-01-2006 05:56 AM |
| Is there any way to unload *.so by force? | princelinux | Linux | 0 | 04-10-2006 12:18 PM |
| which encryption method? | crashnburn | Shell Programming and Scripting | 2 | 08-01-2002 11:41 PM |
| Backup method | synamics | UNIX for Advanced & Expert Users | 2 | 11-05-2001 04:55 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Unload utility with loop method
Hi, I just wonder why the unload tools from INFORMIX doesn't unload all required file to every output of mOutFile at the accumulative way OR my script has an error ? In fact it just unload to one single record at the latest. Code:
for mFile in x???
do
echo "Now working with file "$mFile" at "`date`
mOutFile=$mFile".unl"
while read mLine
do
_customer_t=$(echo $mLine | cut -d "|" -f 1)
echo "unload to $mOutFile select cust_num from customer where customer_t=$_customer_t;" | dbaccess demo
done < $mFile
done
Please advise.. Cheers Regards, |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|