11-04-2008
51,
0
Join Date: Sep 2008
Last Activity: 1 April 2009, 5:50 PM EDT
Posts: 51
Thanks Given: 0
Thanked 0 Times in 0 Posts
Hi Lakris,
Thanks for reply..
here is code i'm using to extract filename:
echo $1
InputFileName=basename $1
echo $InputFileName
in here when i echo $1 , it is showing file name with path:
/data/ds/dpr_bir2core17_dev/landing/region/InputSample1.txt
but echo $InputFileName is showing all the following errors:
/data/ds/dpr_bir2core17_dev/landing/region/InputSample1.txt: INSERT,: not found.
/data/ds/dpr_bir2core17_dev/landing/region/InputSample1.txt[2]: INSERT,: not found.
/data/ds/dpr_bir2core17_dev/landing/region/InputSample1.txt[3]: INSERT,: not found.
/data/ds/dpr_bir2core17_dev/landing/region/InputSample1.txt[4]: INSERT,: not found.
/data/ds/dpr_bir2core17_dev/landing/region/InputSample1.txt[5]: INSERT,: not found.
/data/ds/dpr_bir2core17_dev/landing/region/InputSample1.txt[6]: UPDATE,: not found.
/data/ds/dpr_bir2core17_dev/landing/region/InputSample1.txt[7]: UPDATE,: not found.
/data/ds/dpr_bir2core17_dev/landing/region/InputSample1.txt[8]: UPDATE,: not found.
/data/ds/dpr_bir2core17_dev/landing/region/InputSample1.txt[9]: UPDATE,: not found.
/data/ds/dpr_bir2core17_dev/landing/region/InputSample1.txt[10]: UPDATE,: not found.
/data/ds/dpr_bir2core17_dev/landing/region/InputSample1.txt[11]: UPDATE,: not found.
/data/ds/dpr_bir2core17_dev/landing/region/InputSample1.txt[12]: UPDATE,: not found.
/data/ds/dpr_bir2core17_dev/landing/region/InputSample1.txt[13]: UPDATE,: not found.
/data/ds/dpr_bir2core17_dev/landing/region/InputSample1.txt[14]: UPDATE,: not found.
/data/ds/dpr_bir2core17_dev/landing/region/InputSample1.txt[15]: UPDATE,: not found.
where INSERT and UPDATE are in the first column of InputSample1.txt.
so, I don't know what is the problem with my code..