This file contains 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
awk -v l=500000 '(NR==1){header=$0;next} | |
(NR%l==2) { | |
close(file); | |
file=sprintf("%s.%0.5d.csv",FILENAME,++c) | |
sub(/csv[.]/,"",file) | |
print header > file | |
} | |
{print > file}' empresas.csv |
This file contains 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
catchError(err => { | |
const errorCode = err.code; | |
let errorMessage = this.VerifyErroCode(errorCode); | |
if (errorMessage == null) { | |
errorMessage = err.message; | |
} | |
console.log(errorMessage); | |
}) |