Is there a way to code in ksh to save result into different tab in excel ?
For example: result 1st run save into sheet1
result 2nd run save into sheet2
result 3rd run save into sheet3
Right now I can only save into one Excel and use cut and paste later in excel to move them into indvidual blank tab sheet1, sheet2 and sheet3
Currently code:
#---------------------
#Get REQ Record count
#---------------------
echo $1 >> $CSV_FILE
for infile in `ls -1 $IN_DIR/$SEARCH`; do
incount=`wc -l < $infile|sed 's/^ *//'`
file=`basename $infile`
echo $file, $incount >> $CSV_FILE
done
For example: result 1st run save into sheet1
result 2nd run save into sheet2
result 3rd run save into sheet3
Right now I can only save into one Excel and use cut and paste later in excel to move them into indvidual blank tab sheet1, sheet2 and sheet3
Currently code:
#---------------------
#Get REQ Record count
#---------------------
echo $1 >> $CSV_FILE
for infile in `ls -1 $IN_DIR/$SEARCH`; do
incount=`wc -l < $infile|sed 's/^ *//'`
file=`basename $infile`
echo $file, $incount >> $CSV_FILE
done