I have a 2 files. File1 i am generating using an ETL tool, which is a comman seperated delimited file which contains country code & load date.
everytime, this country code will be updated from a table. It might be AB or BA & ld_date will be for which date we need to load the file.
In file2.sh script which is doing feed validation test for the feed file, i need to pass this country code & load date.
File1
COUNTRYCODE,LD_DATE
AB,20081210
File2.sh
echo $1 $2
Can someone tell me if it is possible to pass in this manner. Because i need to call File2.sh thru ETL tool. so i cannot manually change the parameter daily. I need to pass this parameter dynamically for each run.
OK, I see what you are doing... eliminating the header row with the sed command.
Although I think your var2 should be a cut with an f2 -- you want the second entry on that line. Right?