You are on page 1of 2

*** Extract the contents of exisiting DB table to a CSV using Campaign.

*** Other than the first column of the table, extracted all the other column dat
a into temp2
rm temp2;
for each in `seq 20`; do echo `tail -n+2 SSACCT_SUMMARY.csv | cut -f 2- -d'
,' >> temp2` ; done
*** Create the customer-id column using seq
seq 1 `wc -l temp2 | sed 's/\(^[^ ]*\) .*$/\1/'` > temp1
*** Create header for the final file
head -1 SSACCT_SUMMARY.csv > SSACCT_SUMMARY.big
*** Connect the columns to create data for the output file
paste -d',' temp1 temp2 >> SSACCT_SUMMARY.big
*** Extract the contents of exisiting DB table to a CSV using Campaign.
*** Other than the first column of the table, extracted all the other column dat
a into temp2
rm temp2;
for each in `seq 20`; do echo `tail -n+2 SSACCT_SUMMARY.csv | cut -f 2- -d'
,' >> temp2` ; done
*** Create the customer-id column using seq
seq 1 `wc -l temp2 | sed 's/\(^[^ ]*\) .*$/\1/'` > temp1
*** Create header for the final file
head -1 SSACCT_SUMMARY.csv > SSACCT_SUMMARY.big
*** Connect the columns to create data for the output file
paste -d',' temp1 temp2 >> SSACCT_SUMMARY.big
*** Extract the contents of exisiting DB table to a CSV using Campaign.
*** Other than the first column of the table, extracted all the other column dat
a into temp2
rm temp2;
for each in `seq 20`; do echo `tail -n+2 SSACCT_SUMMARY.csv | cut -f 2- -d'
,' >> temp2` ; done
*** Create the customer-id column using seq
seq 1 `wc -l temp2 | sed 's/\(^[^ ]*\) .*$/\1/'` > temp1
*** Create header for the final file
head -1 SSACCT_SUMMARY.csv > SSACCT_SUMMARY.big
*** Connect the columns to create data for the output file
paste -d',' temp1 temp2 >> SSACCT_SUMMARY.big
*** Extract the contents of exisiting DB table to a CSV using Campaign.
*** Other than the first column of the table, extracted all the other column dat
a into temp2
rm temp2;
for each in `seq 20`; do echo `tail -n+2 SSACCT_SUMMARY.csv | cut -f 2- -d'
,' >> temp2` ; done
*** Create the customer-id column using seq
seq 1 `wc -l temp2 | sed 's/\(^[^ ]*\) .*$/\1/'` > temp1
*** Create header for the final file
head -1 SSACCT_SUMMARY.csv > SSACCT_SUMMARY.big
*** Connect the columns to create data for the output file
paste -d',' temp1 temp2 >> SSACCT_SUMMARY.big
*** Extract the contents of exisiting DB table to a CSV using Campaign.
*** Other than the first column of the table, extracted all the other column dat
a into temp2
rm temp2;

for each in `seq 20`; do echo `tail -n+2 SSACCT_SUMMARY.csv | cut -f 2- -d'
,' >> temp2` ; done
*** Create the customer-id column using seq
seq 1 `wc -l temp2 | sed 's/\(^[^ ]*\) .*$/\1/'` > temp1
*** Create header for the final file
head -1 SSACCT_SUMMARY.csv > SSACCT_SUMMARY.big
*** Connect the columns to create data for the output file
paste -d',' temp1 temp2 >> SSACCT_SUMMARY.big
*** Extract the contents of exisiting DB table to a CSV using Campaign.
*** Other than the first column of the table, extracted all the other column dat
a into temp2
rm temp2;
for each in `seq 20`; do echo `tail -n+2 SSACCT_SUMMARY.csv | cut -f 2- -d'
,' >> temp2` ; done
*** Create the customer-id column using seq
seq 1 `wc -l temp2 | sed 's/\(^[^ ]*\) .*$/\1/'` > temp1
*** Create header for the final file
head -1 SSACCT_SUMMARY.csv > SSACCT_SUMMARY.big
*** Connect the columns to create data for the output file
paste -d',' temp1 temp2 >> SSACCT_SUMMARY.big

You might also like