Si tenemos un archivo cualquiera y queremos borrar lineas duplicadas, lo podemos hacer con este comando:
$ cat file.txt | sort | uniq > file-new.txt
miércoles, 23 de abril de 2014
martes, 1 de abril de 2014
Afinar búsquedas rápidas en Vtiger 6.0
La búsqueda rápida de Vtiger 6.0 no es posible realizarla con algo que no sea el nombre o apellido, para solucionar este problema ejecutar este código SQL.
UPDATE vtiger_contactdetails as origen, vtiger_crmentity as destino
SET destino.label = CONCAT(origen.firstname," ",origen.lastname,” ”,origen.phone,” ” ,origen.email)
WHERE destino.crmid = origen.contactid
AND destino.setype = "Contacts";
UPDATE vtiger_leaddetails as origen, vtiger_crmentity as destino, vtiger_leadaddress as aux
SET destino.label = CONCAT(origen.firstname," ",origen.lastname,” ”,aux.phone,” ” ,aux.mobile,” “,origen.email)
WHERE destino.crmid = origen.leadid
AND aux.leadaddressid = origen.leadid
AND destino.setype = "Leads";
UPDATE vtiger_contactdetails as origen, vtiger_crmentity as destino
SET destino.label = CONCAT(origen.firstname," ",origen.lastname,” ”,origen.phone,” ” ,origen.email)
WHERE destino.crmid = origen.contactid
AND destino.setype = "Contacts";
UPDATE vtiger_leaddetails as origen, vtiger_crmentity as destino, vtiger_leadaddress as aux
SET destino.label = CONCAT(origen.firstname," ",origen.lastname,” ”,aux.phone,” ” ,aux.mobile,” “,origen.email)
WHERE destino.crmid = origen.leadid
AND aux.leadaddressid = origen.leadid
AND destino.setype = "Leads";
Suscribirse a:
Entradas (Atom)