domingo, 19 de diciembre de 2010

Generar un archivo txt con bash – Donate – Forex

Imagen del lenguaje bash
Nunca había utilizado ellenguaje bash pero necesitaba crear un archivotxt con datos porque necesitaba cargar datos ficticios a mi base de datosPostgreSQL. Me di cuenta que es un lenguaje muy potente y con pocas lineas podes hacer cosas maravillosas.
Les dejo el código para generar un archivo txt. Los datos generados son unproduct_id,description yprice que luego voy a importar a mi base de datos para jugar un rato con ella. En otro post voy a explicar como importar datos de un txt a mi base de datos. XD

#!/bin/bash
#
# Variables
COMA=","
NUMERO_INICIAL=5
NUMERO_FINAL=3000
CADENA="product"

function generarFila(){
for((i=$NUMERO_INICIAL;i=NUMERO_FINAL;i+=1)); do
PRECIO=$((RANDOM%3000))
SUFIJO=$((RANDOM%15000))
echo $i$COMA$CADENA$SUFIJO$COMA$PRECIO file.txt
done
}
generarFila

El archivo lo guarde con el nombregenerarFila.sh pero podes poner el nombre que quieras.
Descargar:generarFila.sh

mesothelioma survival rates motorcycle accident injury lawyer mesothelioma law firms auto accident law firms payout annuity free online car quotes st louis mesothelioma attorney car accident lawyer st petersburg fl java cloud development peritoneal mesothelioma causes wisconsin mesothelioma attorney structured settlement annuity companies windows phone for business integrated ehr car accident lawyer in san diego mesothelioma lawyer houston injury lawyers west palm beach denver car accident lawyer hybrid cloud solution general business credit detox in florida best small business phone and internet service mesothelioma attorney illinois mesothelioma lawyer massachusetts florida substance abuse treatment centers mesothelioma trial attorney hosted virtual desktop services mesothelioma settlement amounts semi truck accident lawyers structured settlement purchasers injury lawyer houston tx scalable cloud hosting personal injury attorney sarasota arizona auto accident attorney princeton application tracking system bowne virtual data room auto accident lawyer in maryland accident attorney orange county public service telephone company php web application development small business voip services what are structured settlements multicystic peritoneal mesothelioma best online graduate programs for education auto accident lawyer detroit anaheim dui lawyer mesothelioma lawsuit best accident attorneys causes of mesothelioma drug rehabilitation centers florida small business administration sba car insurance quote chicago auto insurance cost by state structured settlement brokers selling annuity payments mesothelioma foundation workers compensation lawyer los angeles mesothelioma suit mesothelioma attorneys california purchase structured settlements buy structured settlements seattle mesothelioma lawyer caraccidentlawyer irvine car accident lawyer accident lawyers in los angeles national structured settlement trade association auto insurance policy sample mesothelioma attorney directory structured settlements annuities structure settlements new mexico mesothelioma lawyer mesotheloma car accident lawyer michigan companies that buy annuities structured settlement buyer legit online business motorcycle accident lawyer los angeles data recovery raid business pbx system personal injury attorney torrance master in healthcare administration online car insurance seattle washington accident attorney fort lauderdale all about mesothelioma compare small business phone systems mesothelioma claim car accident law firms ehr inc mesothelioma attorney florida supportpeachtreecom mesothelioma lawyer texas motorcycle accident lawyer san diego defense attorney phoenix virtual data room pricing auto accident attorney denver co information technology colleges in california houston tx auto insurance california mesothelioma attorney business class phone buyer of structured settlement annuity emergency response plan ppt best dui attorney phoenix structured settlement agreement personal injury lawyer denver co best savings accounts online download free virtual machine feds liability insurance car insurance aurora il settlement for cash criminal defense attorney phoenix water damage wall repair motorcycle accident lawyer san francisco mesothelioma settlements california car accident attorney injury lawyer free consultation plumbing company denver cheaper insurance companies list of structured settlement companies jacksonville personal injury attorney cloud application hosting houston motorcycle accident lawyer georgia truck accident lawyer mesothelioma lawyers san diego big data analytics software car accident attorney baton rouge criminal justice bachelor degree online selling annuity payments for cash bus accident attorneys firm law mesothelioma hughes net business san bernardino car accident attorney auto accident lawyers in houston tx truck accident attorney texas car accident attorneys los angeles mesotheliama mesothelioma lawyer virginia drug rehab fl accident lawyer orange county colorado car accident attorney colorado auto accident attorney the latest developments in the treatment of mesothelioma best android business card scanner mesothelioma drug accident lawyer west palm beach selling my structured settlement boca raton personal injury attorney business email web hosting structured settlement blog selling annuity mesothelioma claims centrex phone lines personal injury attorney memphis jg wentworth commercial lyrics cyber security small business drug rehab center in florida baltimore mesothelioma attorneys alcohol rehab center in florida business internet san francisco mesothelioma lawyer dallas motorcycle accident lawyer california drug and alcohol rehab in florida mesothelioma care personal injury accident lawyer structered settlement masters of nursing online degree programs business phone line and internet best dui lawyer los angeles personal injury attorney springfield mo mesothelioma help offshore injury attorney los angeles car donation structured settlement investments mesothelioma attorney assistance best structured settlement companies structured settlement sell cloud firewall service mesothelioma veterans buying structured settlements structured settlemen auto accident attorney orange county houston mesothelioma attorney online school business management mesothelioma attorneys lawsuit mesothelioma nss imss broward county dui lawyer personal injury lawyers tampa las vegas criminal defense attorneys illinois mesothelioma lawyer personal injury lawyer boca raton fl dallas mesothelioma attorneys cloud call center software annuity cash out houston mesothelioma lawyers new york mesothelioma law firm magento dedicated hosting cash out structured settlement dui attorney miami car accident attorney colorado springs accident attorney san antonio toledo phone company mesothelioma lawyer chicago auto accident lawyer west palm beach mesothelioma risk factors truck accident attorney los angeles asbestos exposure lawyers mesothelioma cases paass car injury top small business phone systems personal injury attorney Palm Beach County longdistance telephone providers buy my structured settlement mesotheleoma personal injury lawyers phoenix keller williams insurance structured settlement quote auto accident attorney Torrance multicystic mesothelioma buy hosting company truck accident attorney atlanta ga scottsdale accident attorney what is structured settlement structured settlement definition best business telephone service houston auto accident attorneys mesothelioma lawyer asbestos cancer lawsuit business internet houston nyc mesothelioma lawyer selling structured settlement brooklyn car accident lawyer work injury lawyer los angeles atlanta car accident attorney asbestos mesothelioma lawsuit motorcycle accident attorney chicago best mesothelioma lawyers best business phone and broadband deals tennessee mesothelioma lawyer earthlink business internet wireless security systems for business meso lawyer mesothelioma incidence tucson car accident attorney sacramento car accident lawyer mesothelioma litigation i have a structured settlement and i need cash mesothelioma settlements amounts car accident attorney orange county offshore accident lawyer mesothelioma attorney baltimore best internet service for business online insurance quote comparison ips plumbing plumber richardson tx accident attorneys orange county cloud computing companies list business phone internet service attorney lawyer mesothelioma pensacola personal injury lawyer open paas arizona personal injury lawyer state of california car insurance mesothelioma attorney california mesothelioma lawyer louisiana personal injury attorney ocala fl how do create a website business phone deals car accident lawyers los angeles structured settlement company auto accident lawyer san francisco mesotheolima los angeles motorcycle accident lawyer addiction treatment program allentown car accident lawyer accident attorney san bernardino motorcycle accident attorney los angeles injury lawyer tampa selling a structured settlement scottsdale dui attorney mesotheioma mesothelioma ct california motorcycle accident lawyer brooks auto insurance onine backup colorado springs accident attorney washington mesothelioma attorney diagnosed with mesothelioma online schools for social worker degree structured settlement need cash now health care reform impact on employers motorcycle accident attorney sacramento fast cash for house businessinternet car accident attorney las vegas california motorcycle accident lawyers car accident attorney new york city truck accident lawyer dallas maritime lawyer houston internet business service mesothelioma personal injury lawyers business voice mail service austin dui lawyer structured settlement cash out structured settlement buyout ip phone service business san antonio accident lawyer water damage repair tampa what is a business license number philadelphia mesothelioma lawyer mesothelioma information workplace accident attorney accident attorney in los angeles mesothelioma attorney motorcycle lawyer los angeles personal injury lawyer sarasota fl cash for my structured settlement wrongful death lawyer los angeles card services direct login florida car insurance company drug rehab facilities in florida attorney philadelphia enterprise cloud solution holistic addiction treatment center florida mesothelioma compensation colorado mesothelioma lawyers mesothelioma lawsuits cell cycle regulation ppt costa mesa dui lawyer personal injury lawyers fort lauderdale outbound call center software structured settlement advance average mesothelioma settlement car accident lawyers san diego mesothelioma law suit san francisco motorcycle accident lawyer sell your structured settlement payments utah mesothelioma lawyer la personal injury lawyer most profitable internet business sell my structured settlement alabama mesothelioma lawyer alcohol addiction therapy dallas mesothelioma lawyer arizona car accident lawyer car accident lawyer houston internet serious business best business voip provider alcoholics treatment cash out annuity tucson dui attorney online school in indiana injury lawyer virginia annuity payment hosted predictive dialers meso attorney structured settlement cash now car stolen with keys in it scholarship opportunities for middle school students maryland mesothelioma lawyers car crash attorneys dui lawyer scottsdale colorado springs car accident attorney mesothelioma law suits cloud identity and access management arizona auto accident lawyer auto insurance corpus christi tx auto accident attorney sarasota i need a personal injury lawyer personal injury attorney clearwater michigan motorcycle accident lawyer accident and injury lawyer quotes car pharmacist jobs in chicago best dui attorney orange county personal injury firm building online stores car accident lawyer san bernardino auto insurance yuba city ca verizon sip boulder personal injury lawyers asbestos lawyers los angeles virtual call center software reviews corporate conference call services car insurance quotes florida online mesothelioma lawyer california denver car accident attorney ford focus st top gear business phone and internet providers la casa mental health rehabilitation center cloud development tools asterisk call center software auto insurance redlands ca master of public policy programs personal injury attorney west palm beach fl structured settlements companies injury attorney baton rouge mesothelioma and asbestos exposure sell annuity payments fort collins car accident attorney business administration masters

structured settlement cash now buying a structured settlement new voip phone service los angeles workers compensation lawyers small business phone plans structured settlement sell mesothelioma survival rates java cloud development mesothelioma lawyer san diego mesothelioma rates auto accident lawyer austin buy structured settlements mesothelioma litigation motorcycle accident lawyers san diego best mesothelioma lawyers start web design business mesothelioma veterans lawsuit mesothelioma auto accident injury lawyers structured settlment baltimore mesothelioma attorneys should i be a lawyer auto insurance corpus christi tx lump sum annuity highest yield online savings colorado injury lawyers internet phone service for small business structure settlements rogers business internet business credit car mesothelioma suit mesothelioma attorneys california clous computing dui lawyer phoenix alcohol rehabilitation florida costa mesa dui lawyer telco solutions structured settlement annuity companies structured settlements annuities las vegas car accident lawyer semi truck accident lawyers business administration masters drug rehab centers in orlando florida wisconsin mesothelioma attorney mesothelioma lawyer virginia la casa mental health rehabilitation center online schools for social worker degree mesothelioma law suit structured settlemen structured settlement buyer mesothelioma attorney illinois what is a business license number personal injury lawyer attorney online website store builder plueral mesothelioma masters programs in criminology mesothelioma risk factors what is a structured settlement mesothelioma fund how to sell annuities seattle mesothelioma lawyer mesothelioma claim dui attorneys orange county highlander the final dimension car accident attorney baton rouge mesothelioma lawyer asbestos cancer lawsuit structured settlement investments caraccidentlawyer business voip service providers virtual data room review hybrid cloud solution small business administration sba mesothelioma foundation car accident attorney new york city best car accident lawyers accident attorney orange county denver auto accident attorneys structured settlements companies denver car accident lawyers structured settlement purchasers asterisk call center software houston tx auto insurance mesotheliama mesothelioma trial attorney pittsburgh auto insurance structured settlements calculator ip phone service business hard drive raid recovery air conditioning repair frisco michigan auto accident lawyer cell cycle regulation ppt selling annuity payments for cash selling my structured settlement masters of nursing online degree programs orlando truck accident attorney purchase annuities business email web hosting structured settlement purchaser avaya phones system drain cleaning in denver drug rehab center in florida best electronic health record voip business providers cash out annuity auto accidents attorney windows phone platform health care reform impact on employers best business phone and broadband deals mesothelioma help bowne virtual data room selling annuity virtual dataroom selling structured settlement injury lawyer houston tx mesothelioma lawyers new york sell your structured settlement payments accident attorney san bernardino new mexico mesothelioma lawyer california motorcycle accident lawyer mesothelioma care business telephone systems reviews mesothelioma lawyer texas purchase structured settlements hughes net business accident lawyers in los angeles structered settlement network disaster recovery plan internet business plan houston motorcycle accident lawyer sell annuity payment auto insurance cost by state car accident lawyer pittsburgh mesothelioma lawyer dallas corona auto insurance alcohol rehab center in florida houston mesothelioma attorney austin texas personal injury attorney car insurance for masters degree in human resource management businessinternet mesothelioma settlements amounts scholarship opportunities for middle school students cloud identity and access management water damage lawyer new york mesothelioma law firm mesothelioma cancer center car accident lawyer colorado springs injury attorney baton rouge personal injury attorny attorney for injury cyber security small business florida automobile insurance company mesothelioma lawsuit dui attorney tempe firm law mesothelioma cash out structured settlement mesothelioma lawyer chicago sell annuity for cash yahoo web based mail lawyers for mesothelioma truck accident attorney los angeles cloud coputing asbestos exposure lawyers irvine car accident lawyer car accident lawyers los angeles tucson car accident attorney car accident lawyers west palm beach dui attorney miami companies that buy annuities mesothelioma cases san diego criminal defense attorneys easy business intelligence emergency response plan ppt advanced american telephones supportpeachtreecom host virtual machine master in healthcare administration online how to cash in an annuity las vegas injury lawyer structured settlement lump sum diagnosed with mesothelioma sports management degree programs structured settlement quote doctorate of nursing programs los angeles car donation public service telephone company auto accident attorney Torrance tampa auto accident lawyer mesothelioma compensation mesothelioma lawyers san diego drug programs in schools hosted virtual desktop services asbestos mesothelioma lawsuit buying structured settlements mesothelioma attorney assistance tennessee mesothelioma lawyer personal injury lawyers houston earthlink business internet meso lawyer structured settlement agreement mesothelioma settlement amounts quotes car cloud computing companies list cloud infrastructure as a service georgia truck accident lawyer car insurance quote chicago houston car wreck attorney arizona personal injury lawyer personal injury attorney torrance auto accident attorney tampa phoenix car accident lawyer mesothelioma law firms accident attorneys orange county auto accident defense attorney personal injury accident lawyer sell my structured settlement payment a a accident attorneys dui attorney tempe az auto insurance yuba city ca personal injury lawyers sarasota mesothelioma attorneys structured settlement company lawyers accidents auto accident lawyer san francisco mesotheolima no vehicle insurance los angeles motorcycle accident lawyer mesothelioma lawsuits settlements mesothelioma attorney florida broward county dui lawyer state of california car insurance selling a structured settlement settlement for cash best accident attorneys jg went mesothelioma ct auto accident attorney denver colorado springs car accident lawyer nv auto call centers software nss imss car insuarnce quotes sell an annuity most profitable internet business nist cloud security cloud computering e insurance auto quote washington mesothelioma attorney masters degree public administration structured settlement need cash now all about mesothelioma car accident lawyer st petersburg fl accident attorney san antonio mesothelioma claims how to get a masters in business administration microsoft private cloud certification structured settlement advance houston maritime lawyers florida auto ins mesotheioma mental health rehabs dui lawyer scottsdale mesothelioma charities motorcycle accident attorney chicago boulder personal injury lawyers newport beach dui lawyer princeton application tracking system free electronic medical records software download dallas hvac service mesothelioma lawyers best dui lawyer in phoenix motorcycle accident attorney sacramento florida substance abuse treatment centers car accident lawyer michigan online masters degree programs massachusetts cloud computin car injury fast cash for house american securities opportunities fund internet phone service business personal injury attorney bronx selling structured settlements saskatchewan auto insurance car accident lawyers in los angeles maritime lawyer houston mesothelioma personal injury lawyers mesothelioma settlement personal injury attorney ocala fl personal injury lawyers tampa information about car insurance car accident lawyer in san diego business voice mail service california mesothelioma attorney work injury lawyer los angeles offshore accident lawyer bus accident attorneys orange county car accident lawyer philadelphia mesothelioma lawyer mesothelioma lawyer louisiana personal injury lawyer boca raton annuity payment workplace accident attorney illinois mesothelioma lawyer car accident lawyers san diego pharmacist jobs in chicago mesothelioma attorney truck accident attorney texas colorado auto accident attorney personal injury lawyer west palm beach car accident lawyer denver american telecom solutions water damage wall repair structured settlement broker epithelioid mesothelioma personal injury lawyer sarasota fl personal injury lawyer long beach ca sell a structured settlement sell my annuity florida car insurance company plumbing inspection Los Angeles fort lauderdale personal injury lawyer raid recovery labs structured settlement cash out mesothelioma settlements attorney lawyer mesothelioma colorado mesothelioma lawyers windows phone for business average mesothelioma settlement mesothelioma lawyer massachusetts sell annuity email archiving solution brooklyn car accident lawyer injury lawyer virginia dallas mesothelioma lawyer internet savings account rates mesothelioma lawsuits skype push to talk multicystic mesothelioma mesothelioma lawyer houston chicago work injury lawyer mesothelioma lawyer integrated ehr auto accident law firms criminal justice bachelors motorcycle accident lawyer california personal injury lawyers michigan business landline phone deals utah mesothelioma lawyer fastest internet services

Share:

Popular Posts

Recent Posts

Blog Archive

Con la tecnología de Blogger.