This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This program will merge all the csv files to a single large file. Headers should be same. | |
# sampleFile.csv = Provide a file that contains the header of csv. | |
{ head -n1 sampleFile.csv; for f in *.csv; do tail -n+2 "$f"; done; } > largeFile.csv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function convertXLStoArray($infile, $outfile){ | |
if(!file_exists($infile) || !is_readable($infile) || !file_exists($outfile) || !is_readable($outfile)) | |
return FALSE; | |
$fileType = PHPExcel_IOFactory::identify($infile); | |
$objReader = PHPExcel_IOFactory::createReader($fileType); | |
NewerOlder