Converitir archivos de texto a formato UTF-8

viernes, 20 de noviembre de 2009

Otra vez mil aplausos para linux, me saca de apuros...tenia un trabajo de la universidad, tenia mas de mil archivos de texto hechos por un amigo en win2 ;(...y cuando queria leer esos archivos de texto desde php usando el apache las tildes se transformaban en otro caracter, aun asi cambiando el formato desde html, nada...entonces lo que se me ocurrio fue cambiar el formato que tenian ISO-8859-15 a UTF-8 que seria el correcto para no tener esos problemas entonces buscando en internet junte varias cosas y genere este script:

#!/bin/bash
for file in `ls`
do
iconv -f ISO-8859-15 -t UTF-8 -o "new_$file" "$file"
done
copienlo tal como esta...yo lo llame script.sh luego tienen q darle permiso de ejecucion asi:

sudo chmod -x script.sh
luego lo corren en el mismo directorio de esta manera:

sudo ./script.sh
noten..que se tiene que generar un nuevo archivo por que si ponen el mismo nombre se eliminara el contenido.

23 comentarios:

  • Ist Einverstanden, die nГјtzliche Phrase viagra generika test viagra generika online bestellen [url=http//t7-isis.org]viagra online bestellen forum[/url]

  • educated singles [url=http://loveepicentre.com/]world of warcraft singles[/url] san diego online dating http://loveepicentre.com/ free personals for civil servants

  • cathedral city auto audio products [url=http://www.cardvdplanet.com/car-cd-player-support-sd-mmc-card-cd154--discount-price34.html]chrysler concorder factory car audio amplifier[/url] dual screen auto dvd player http://www.cardvdplanet.com/magoten-touch-screen-7-inch-2-din-tft-lcd--discount-price88.html auto dvd players
    car audio subwoofer alpine plt 5 ford 2002 f150 supercrew [url=http://www.cardvdplanet.com/car-cd-mp3-player-with-usb-sd-mmc-cd149--discount-price52.html]auto dvd[/url] beststuff fuel car dvd ipod vacation houseboat lake powell home http://www.cardvdplanet.com/car-dvd-player-with-fm-function-cd143--discount-price61.html beststuff fuel car dvd ipod vacation houseboat lake powell
    discount auto dvd player [url=http://www.cardvdplanet.com/7-inch-tft-lcd-touch-screen-car-dvd-player-with--discount-price86.html]auto audio refurbishers[/url] beststuff fuel car dvd ipod vacation http://www.cardvdplanet.com/car-dvd-player-with-fm-function-cd139--discount-price59.html audiovox auto dvd

  • disease cause by lack of calcium [url=http://usadrugstoretoday.com/products/dostinex.htm]dostinex[/url] community health action http://usadrugstoretoday.com/products/viagra.htm vermont health psychology http://usadrugstoretoday.com/categories/colesterol.htm
    santa rosa zoom tooth whitening [url=http://usadrugstoretoday.com/products/lamictal.htm]lamictal[/url] prostate health herbs [url=http://usadrugstoretoday.com/catalogue/r.htm]how to get accurate blood pressure readings[/url]

  • smoking causes lung disease [url=http://usadrugstoretoday.com/products/azulfidine.htm]azulfidine[/url] ph strips for vaginal infection http://usadrugstoretoday.com/categories/cardiovascolari.htm adirondark medical center home page http://usadrugstoretoday.com/products/shuddha-guggulu.htm
    weight loss after lexapro [url=http://usadrugstoretoday.com/products/revatio.htm]revatio[/url] how do you heal a broken heart [url=http://usadrugstoretoday.com/categories/cardio-vasculaires.htm]gnc vitamin stores[/url]

  • http://online-health.in/antibiotics/factory-farming-antibiotics
    [url=http://online-health.in/arava/arava-med]otc drugs that you can od on[/url] drugs used in home dialysis [url=http://online-health.in/avapro/how-soon-does-it-take-avapro-to-work]how soon does it take avapro to work[/url]
    viagra ervaringen http://online-health.in/avodart/avodart-and-flomax
    [url=http://online-health.in/angina/angina-de-pecho]eckerd pharmacy belmar new jersey[/url] first community pharmacy agreement [url=http://online-health.in/avalide/avalide-feline-kidney]avalide feline kidney[/url]
    crushing drugs http://online-health.in/arava/side-effects-of-arava
    [url=http://online-health.in/ashwagandha/ashwagandha-herbal-supplement]drug testing harrassment[/url] detox diet drug [url=http://online-health.in/bicalutamide/casodex-bicalutamide-california]casodex bicalutamide california[/url] specialty pharmacy new drug [url=http://online-health.in/atacand/atacand-hct-side-effects]atacand hct side effects[/url]

  • http://meen.in/fluvoxamine/alcohol-anorgasmia-fluvoxamine
    [url=http://meen.in/felodipine/felodipine-depression]calculating drug dosages martinez de castillo[/url] purchasing prescription drugs in mexico [url=http://meen.in/fluvoxamine/fluvoxamine-sleep]fluvoxamine sleep[/url]
    illegal drugs and description for parents http://meen.in/cefuroxime/cefuroxime-axefil
    [url=http://meen.in/cholesterol/cholesterol-friendly-meals]online pharmacy technician certification[/url] eden maryland drug bust [url=http://meen.in/casodex/seed-pods-casodex]seed pods casodex[/url]
    get viagra drug online http://meen.in/ciprofloxacin/ciprofloxacin-500mg-tablets
    [url=http://meen.in/escitalopram/escitalopram-and-omeprazole-interaction]is drug paraphanalia illegal state of indiana[/url] drug free youth [url=http://meen.in/flomax/flomax-and-eye-problems]flomax and eye problems[/url] sylvan lakes pharmacy sylvania [url=http://meen.in/finasteride/black-hair-finasteride]black hair finasteride[/url]

  • http://alwayshealth.in/oxybutynin/oxybutynin-induced-autonomic-neuropathy
    [url=http://alwayshealth.in/women-health/health-inspectors]pharmacy prescription label[/url] community pharmacy medicare [url=http://alwayshealth.in/no-prescription/codeine-no-prescription]codeine no prescription[/url]
    functionalist and drugs http://alwayshealth.in/general-medical/harvard-medical-school-admissions
    [url=http://alwayshealth.in/olanzapine/olanzapine-attorneys-los-angeles]pharmacy open 24 hours a day in tn[/url] tel drug form [url=http://alwayshealth.in/stop-smoking/quitting-smoking-and-zodiac-signs]quitting smoking and zodiac signs[/url]
    drug testing schedule http://alwayshealth.in/penis-growth/ron-jeremys-penis-size
    [url=http://alwayshealth.in/oxcarbazepine/overdose-on-oxcarbazepine]senior mens health[/url] drug use signs bad breath [url=http://alwayshealth.in/no-prescription/amoxicillin-zyrtec-no-prescription-required-viagra]amoxicillin zyrtec no prescription required viagra[/url] amsterdam drugs [url=http://alwayshealth.in/osteoporosis]osteoporosis[/url]

  • mercedes benzs430 brake repair pricing http://eautoportal.in/car-racing/d-j-myers-racing watch detroit auto show on television
    [url=http://eautoportal.in/bmw/used-bmw-dealership-york]volkswagen salvage spare[/url] face recognition system hardware for automobile [url=http://eautoportal.in/auto-net/auto-parking-aids]auto parking aids[/url]
    automobile license plates personalized http://eautoportal.in/acura/clair-acura-walpole-ma
    [url=http://eautoportal.in/jeep/jeep-liberty-trailer-wiring-harness]automobile careers[/url] auto shop management software [url=http://eautoportal.in/bmw-car/bmw-repair-clinic]bmw repair clinic[/url]
    auto towing rental trailer http://eautoportal.in/chopper/dixie-chopper-ztr
    [url=http://eautoportal.in/bmw-car/bmw-passenger-glass]willie dodge chrysler[/url] los angeles mercedes cup 2004 mens singles winner [url=http://eautoportal.in/harley/harley-davidson-sportster-forums]harley davidson sportster forums[/url]

  • suzuki new automobile engine break in procedure http://autoexpress.in/mercury/mercury/retrograde/direct tv reception in automobile
    [url=http://autoexpress.in/bugatti/bugatti/veryon]mercedes 1984 unimog[/url] largest auto insurance companies [url=http://autoexpress.in/opel/opel/vivaro]opel vivaro[/url]
    dodge pickup remote door lock conversion http://autoexpress.in/pontiac/pontiac/gm
    [url=http://autoexpress.in/racing/dell/west/racing]mercedes 1995 e320 amp stereo[/url] gps nokia 320 auto navigation [url=http://autoexpress.in/rover/rover/45/manual]rover 45 manual[/url]
    bushwacker flairs 2007 dodge http://autoexpress.in/cadillac/cadillac/srx/sport
    [url=http://autoexpress.in/bugatti/bugatti/ristorante]dodge cars history[/url] earl blacks auto nj [url=http://autoexpress.in/plymouth/where/is/the/idle/air/control/motor/1989/plymouth/grand/voyager]where is the idle air control motor 1989 plymouth grand voyager[/url]

  • ralph lauren jeans womens pickstitch stovepipe http://topcitystyle.com/?action=products&product_id=2472 dool clothes [url=http://topcitystyle.com/sky-blue-white-shirts-color200.html]camerons clothes the holiday[/url] lacoste shoes
    http://topcitystyle.com/christian-audigier-club-wear-brand106.html history fashion australia [url=http://topcitystyle.com/north-sails-casual-brand58.html]sexy girls without clothes[/url]

  • ultimate free hentai http://planetofporn.in/teen-ass/most-beautiful-ass
    [url=http://planetofporn.in/adult-porn/adult-trapeze-bar]belize adult all inclusives[/url] wall banger dildo [url=http://planetofporn.in/girl-anal/big-tits-anal]big tits anal[/url]
    cleopatrica adult sex http://planetofporn.in/blow/blow-jobs-cancer
    [url=http://planetofporn.in/girl-anal/indian-anal-porn]suck me off porn[/url] tentacle hentai flash games [url=http://planetofporn.in/erotic-stories/erotic-massage-ohio]erotic massage ohio[/url]
    sexy thai women wallpaper http://planetofporn.in/adult-pic/adult-literture
    [url=http://planetofporn.in/bdsm/outdoor-femdom-bdsm-free-clips]first black anal[/url] frevert porn [url=http://planetofporn.in/bdsm/victoria-bdsm]victoria bdsm[/url]
    free adult videosvideos http://planetofporn.in/blow/very-sexy-beautiful-michele-blow-job-story
    [url=http://planetofporn.in/first-anal/mature-anal-big-juggs]mobile lubricant[/url] adult piano adventures [url=http://planetofporn.in/erotic-video/erotic-confessions-of-women-masturbating]erotic confessions of women masturbating[/url]

  • sexy male trunks http://theporncollection.in/hentai-sex/dream-and-reality-hentai
    [url=http://theporncollection.in/gay-porn]chanelchooser adult[/url] free hentai por videos [url=http://theporncollection.in/mature-woman/mature-squirting-porn-video]mature squirting porn video[/url]
    big bootys anal sex http://theporncollection.in/gay-anal/blog-fotos-nudismo-masculino-gay
    [url=http://theporncollection.in/mature-xxx/mature-large-breasted-women]adult party punch[/url] how to apply ky lubricant [url=http://theporncollection.in/lesbian-video/free-no-cost-lesbian-porn]free no cost lesbian porn[/url]
    amateur free post slut http://theporncollection.in/gay-video/gay-bdsm-munches
    [url=http://theporncollection.in/gay-love/free-gay-tube]tai matt hentai[/url] hentai milk money [url=http://theporncollection.in/orgasm/orgasm-images]orgasm images[/url]
    adult nurse academy http://theporncollection.in/porn-dvd/what-is-illeagal-porn
    [url=http://theporncollection.in/sex-mature/mature-moms-fuck-young-boys]sexy tribles[/url] adult dildo rabbit sex toy vibrator [url=http://theporncollection.in/gay-xxx/huckabee-gay-marriage-abortion]huckabee gay marriage abortion[/url]

  • gucci handbag http://www.thefashionhouse.us/de-puta-madre-69-brand15.html laurence elivia [url=http://www.thefashionhouse.us/blue-grey-on-sale-color144.html]chanel coco cc logo charm necklace[/url] womens saucony shoes
    http://www.thefashionhouse.us/gucci-tunic-with-crystal-logo-for-women-white-item545.html designer drugs [url=http://www.thefashionhouse.us/?action=products&product_id=2342]mens adidas shoes[/url]

  • angleman syndrome treatment [url=http://usadrugstoretoday.com/categories/anti-champignons.htm]anti champignons[/url] breast neoplasm http://usadrugstoretoday.com/products/glyset.htm
    only symptoms weight loss [url=http://usadrugstoretoday.com/products/amitriptyline.htm]amitriptyline[/url] pill stuck throat [url=http://usadrugstoretoday.com/products/sublingual-cialis.htm ]drugs no prescription scams [/url] breast drooping
    atkins diet bars [url=http://usadrugstoretoday.com/products/digoxin.htm]digoxin[/url] penis voodoo spell http://usadrugstoretoday.com/products/revatio.htm
    medical technologist temps wny [url=http://usadrugstoretoday.com/products/lamisil.htm]lamisil[/url] laws and dispensing of viagra [url=http://usadrugstoretoday.com/products/sinequan.htm ]generic name for adipex [/url] clinical roles of pharmacists in pharmacy

  • purple shoes for ladies http://luxefashion.us/white-violet-women-color182.html designer replics handbags [url=http://luxefashion.us/punkglamour-brand56.html]shoe designer basto[/url] party designers in seattle wa
    http://luxefashion.us/42-new-size23.html marlboro classics shoes [url=http://luxefashion.us/napapijri-casual-brand62.html]adhesive horse shoes[/url]

  • what is anxiety disorder [url=http://usadrugstoretoday.com/products/flomax.htm]flomax[/url] obsessive compulsive drugs http://usadrugstoretoday.com/products/paroxetine.htm
    modified ovo lacto vegetarian diet [url=http://usadrugstoretoday.com/products/keppra.htm]keppra[/url] allergic reaction to gold [url=http://usadrugstoretoday.com/products/strattera.htm ]bipolar disorder and serotonin [/url] bo diddley health
    my daughter got on top of my penis [url=http://usadrugstoretoday.com/products/generic-keflex.htm]generic keflex[/url] phoenix prostate http://usadrugstoretoday.com/products/furosemide.htm
    dieting eating disorder [url=http://usadrugstoretoday.com/products/pletal.htm]pletal[/url] medical care in edmonton alberta canada [url=http://usadrugstoretoday.com/products/diclofenac-gel.htm ]taking advil and aspirin together [/url] tended orgasm for women

  • bingo photo danmark http://xwn.in/keno_play-keno-not-gambling club player casino
    [url=http://xwn.in/casino-online_casino-magasins]online gambling in the united states[/url] negative affects from massachusetts lottery [url=http://xwn.in/joker_mark-hammal-the-joker]mark hammal the joker[/url]
    mn lottery winning numbers http://xwn.in/jackpot_jackpot-marvel
    [url=http://xwn.in/online-casino_imperial-palace-casino-mississippi]bingo in gainesville va monday morning[/url] economics of online gambling [url=http://xwn.in/roulette_virtual-roulette-online]virtual roulette online[/url]
    online video craps casinos http://xwn.in/lottery_canadian-cancer-lottery jupiters casino shows [url=http://xwn.in/blackjack_blackjack-pizza-tucson-arizona]blackjack pizza tucson arizona[/url]

  • glenbard auto sales http://pqx.in/hyundai/interior/door/hyundai/sonata cairo ga dodge
    [url=http://pqx.in/kawasaki/kawasaki/stx/1100]quality tire and auto[/url] florida allstate auto policies suspended [url=http://pqx.in/jeep/used/jeep/parts/mirror]used jeep parts mirror[/url]
    drive on auto lifts http://pqx.in/isuzu/isuzu/ascender/2005
    [url=http://pqx.in/cadillac/cadillac/deville/accesories]mercedes hybrid[/url] mercedes 320 [url=http://pqx.in/chrysler/efird/chrysler]efird chrysler[/url]
    original royal automobile club logo uk http://pqx.in/bike/dirt/bike/girls/hairstyles
    [url=http://pqx.in/bentley/bentley/continental/gtc]mercedes benz 2636[/url] turn key auto supply in hardin mt [url=http://pqx.in/volvo/lehigh/valley/volvo/dealers]lehigh valley volvo dealers[/url]

  • ohio new year lottery http://lwv.in/casino-online/quanalt-beach-casino blackjack strategy chart
    [url=http://lwv.in/online-casinos/type-of-casinos]mass state lottery keno[/url] helloween gambling [url=http://lwv.in/roulette/roulette-shot-glass-game-rules]roulette shot glass game rules[/url]
    online bingo free welcome bonus http://lwv.in/slot/halibi-thirty-slot-machine
    [url=http://lwv.in/jackpot/grand-hotel-mornington-trivia-jackpot-question]new mexico powerball lottery results[/url] joker analysis dark knight [url=http://lwv.in/slots/casinos-with-coin-operated-slots-midwest]casinos with coin operated slots midwest[/url]
    books on gambling http://lwv.in/gambling-online/gambling-casinos-indians jacksonville casinos [url=http://lwv.in/blackjack/consumer-reports-of-the-samsung-blackjack]consumer reports of the samsung blackjack[/url]

  • genuine online betting sites http://lwv.in/joker/homer-joker lottery game milton bradley 1932
    [url=http://lwv.in/slot/pci-slot-differences]indian casinos breaking white america parody[/url] state gambling ages [url=http://lwv.in/jokers/gypsy-jokers-1966]gypsy jokers 1966[/url]
    new on line casinos http://lwv.in/online-casino/treasure-island-casino-playing-cards
    [url=http://lwv.in/roulette/roulette-wiz]paducah ky casinos[/url] rules of poker internet casino gambling [url=http://lwv.in/online-casino/beach-houses-in-lincoln-city-by-the-casino]beach houses in lincoln city by the casino[/url]
    sweetwater casino http://lwv.in/slot/slot-machine-cake bingo interest group [url=http://lwv.in/gambling-online/weight-loss-online-gambling]weight loss online gambling[/url]

  • movie covers [url=http://moviestrawberry.com/films/film_annapolis/]annapolis[/url] exploited teens movie samples tiffany http://moviestrawberry.com/hqmoviesbyyear/year_1935_high-quality-movies/ popular tv and movie actress
    download albert fish movie [url=http://moviestrawberry.com/films/film_career_opportunities/]career opportunities[/url] surfing penguin movie http://moviestrawberry.com/films/film_vegas_vacation/ evan almighty movie cast
    watch free the house of the spirits movie online [url=http://moviestrawberry.com/films/film_the_adventures_of_sharkboy_and_lavagirl_3_d/]the adventures of sharkboy and lavagirl 3 d[/url] how to make movie clips into one
    an extremely goofy movie [url=http://moviestrawberry.com/films/film_connie_and_carla/]connie and carla[/url] arlington movie theatre http://moviestrawberry.com/films/film_the_beast/ natilie portman new movie
    speilberg concentration camp movie [url=http://moviestrawberry.com/films/film_the_international/]the international[/url] ebony lesbians 6 movie http://moviestrawberry.com/films/film_freddy_s_dead_the_final_nightmare/ porno movie trailers

  • dalton brothers movie [url=http://moviestrawberry.com/films/film_manhunter/]manhunter[/url] movie thunder road http://moviestrawberry.com/films/film_ride_with_the_devil/ listen to songs from bhool bhlaiya movie
    a girl like me movie [url=http://moviestrawberry.com/films/film_manderlay/]manderlay[/url] french movie broderie http://moviestrawberry.com/hqmoviesbygenres/download-genre_comedy-movies/?page=36 movie witchs of breastwhich cast
    jackie chan movie [url=http://moviestrawberry.com/films/film_the_secret_life_of_the_american_teenager/]the secret life of the american teenager[/url] movie peacefull warrior
    movie titled lucas on kued [url=http://moviestrawberry.com/films/film_teenage_mutant_ninja_turtles_ii_the_secret_of_the_ooze/]teenage mutant ninja turtles ii the secret of the ooze[/url] movie space boyz http://moviestrawberry.com/films/film_the_tale_of_despereaux/ soundtrack movie
    shane movie trailer [url=http://moviestrawberry.com/films/film_swimming_pool/]swimming pool[/url] daisy marie movie http://moviestrawberry.com/films/film_primrose_path/ young lactating movie