jDirToText: Koj cov ntaub ntawv rau Text

Hnub no kuv coj koj cov program yooj yim uas kuv tau siv ob peb lub hlis dhau los hauv Java thiab txawm hais tias kuv tau qhia nws rau lwm qhov chaw, Kuv nco kuv tshaj tawm hauv cov chaw kuv mus ncig ntau tshaj, ntawm no.

Ua ntej tshaj plaws peb yuav tsum muaj JAVA 7 ntsia rau hauv qhov system.

Nws yog ib qhov program tsim los kho qhov haujlwm ntawm kev luam cov npe cov ntaub ntawv ntawm ib lossis ntau qhov chaw cia rau hauv cov ntawv sau (.txt)

UTILITY: Piv txwv, lub chaw nres tsheb hauv xov tooj cua xav qhia cov npe ntawm cov npe kab ke ntawm lub lim tiam ntawm qee cov nplooj ntawv web.

Qhov program no tso cai rau koj los tshawb cov npe thiab ua daim ntawv tsis siv neeg lub npe ua ntawv, sau peb lub zog ntawm kev luam nws ntawm tes.

Ib qho piv txwv ntxiv, tus phooj ywg thov peb kom nws hla nws "cov npe ntawm cov nkauj," yog li peb pom peb lub suab paj nruag Music thiab khiav cov haujlwm.

Ua haujlwm rau ib lossis ntau daim ntawv teev npe rov qab nrhiav dua.

Qee qhov screenshots:

156

38C

Yuav siv li cas

Hauv txoj haujlwm, peb xaiv daim nplaub tshev nkag (tus peb xav hloov ua lwm yam), thiab tom qab ntawv cov ntawv ntawm salida nias hloov, thiab voila 🙂

Qhov kev zov me nyuam yuav cia li tsim ib cov ntawv hu ua "FILES_LIST.txt"

Kom khiav nws los ntawm console:

java -jar nombredelarchivo.jar

Kuv vam tias nws yuav pab koj 🙂

paug

Cov ntsiab lus ntawm tsab xov xwm ua raws li peb cov ntsiab cai ntawm kev tswj hwm kev ncaj nceesCov. Tshaj tawm ib qho yuam kev nyem no.

13 lus, tawm koj li

Tso koj saib

Koj email chaw nyob yuav tsis tsum luam tawm. Yuav tsum tau teb cov cim nrog *

*

*

  1. Lub luag haujlwm rau cov ntaub ntawv: Miguel Ángel Gatón
  2. Lub hom phiaj ntawm cov ntaub ntawv: Tswj SPAM, kev tswj xyuas tawm tswv yim.
  3. Sau raws cai: Koj kev tso cai
  4. Kev sib txuas lus ntawm cov ntaub ntawv: Cov ntaub ntawv yuav tsis raug xa mus rau lwm tus neeg thib peb tsuas yog los ntawm kev txiav txim siab raug cai.
  5. Cov ntaub ntawv khaws cia: Cov Ntaub Ntawv khaws tseg los ntawm Occentus Networks (EU)
  6. Txoj Cai: Txhua lub sijhawm koj tuaj yeem txwv, rov qab thiab tshem tawm koj cov ntaub ntawv.

  1.   davidlg ua said

    Lub zog ntawm bash
    $ ls / path_to_folder> output.txt

    koj xav tshawb cov ntaub ntawv nrog .mp3 txuas ntxiv (tshawb nrhiav tus kheej dua)
    $ nrhiav nplaub tshev_to_lookup-npe * .mp3

    1.    davidlg ua said

      thawj zaug qhia cov ntaub ntawv thiab xa tawm mus rau hauv file file.txt

      qhov thib ob zoo rau cov ntawv nrog .mp3 txuas ntxiv, kom xa lawv cov ntawv nws yuav zoo tib yam li ua ntej
      $ nrhiav nplaub tshev_to_search-npe * .mp3> output.txt

    2.    Xykyz said

      Qhov ntawd yog qhov kuv tau xav, uas nrog «ls path> output.txt» koj tau ua tiav lawm thiab koj tseem tuaj yeem siv cov lus tsis tu ncua kom tau txais cov duab thiab suab paj nruag nrog, piv txwv li «ls path / *. {Mp3, jpg}> output .txt ».

      1.    Bruno cascio said

        Nyob zoo cov phooj ywg! Nco ntsoov nws tuaj yeem ua nrog bash. Kev rho tawm cov ntawv sau npe nrog subdirectories (piv txwv) kuj tseem tuaj yeem ua nrog bash, txawm li cas los xij ntau tus nyiam nkag mus hauv cov ntawv tshawb nrhiav thiab rho tawm nrog kev rho tawm, thiab qee zaum tseem phem dua, yuav tsum tau muab kev tso cai ua ntej tshem tawm.

        Nws yog npaj rau txhua qhov system, tsis yog tsis suav. Windows cov neeg siv tsis muaj lub cuab yeej zoo ib yam thiab txawm tias yog li, muaj lawv, lawv yuav tsis siv lawv, vim tias yog li ntawd lawv tau poob ua qhev, muaj lub graphical interface.

        Tsaug rau cov lus 🙂

    3.    Hugobuntux Aldebian said

      zoo heev tab sis nws tseem tuaj yeem ua tiav nrog bash
      yog yooj yim ls hauv nplaub tshev lossis cov ntawv qhia> filename.txt
      hauv winBugs nws yog qhov zoo
      Ua tsaug!

  2.   xwv 85321 said

    Yog tias lawv tsuas yog xav tau cov npe ntaub ntawv uas lawv tuaj yeem siv xwb

    [code] ls -1> out.txt [/ code]

    Qhia cov npe nkaus xwb.

  3.   F3niX said

    Tib yam uas kuv tau mus hais, bash lossis nab hab sej, qee cov kab thiab koj yuav tsis tau nruab dab tsi ntxiv rau hauv lub system. Tab sis qhov kev koom tes tseem tseem muaj txiaj ntsig thiab nws yuav zoo dua yog tias koj qhia cov cai rau cov uas nyiam kawm me ntsis.

    1.    Bruno cascio said

      Nov yog qhov chaws: https://drive.google.com/file/d/0B8DT697Uja7RZFRNem9NM2JEUWM/edit?usp=sharing

      Kuv yuav ntxiv nws rau tus ncej. Tsaug rau saib.)

  4.   Joaquin said

    Nyob zoo! Raws li koj tau hais txog, nws yuav zoo kawm me ntsis txog qhov Java programming zoo li cas, tab sis kuv xav tias qhov tsim nyog tshaj rau peb yog siv bash hauv ib kab.

    Kuv pom zoo nrog qhov koj hais tias tsis yog txhua tus nyiam siv lub nplig, thiab muaj qhov zoo kuj yog qhov ua tau los ua multiplatform. Thiab kuv xav tias nws yuav muaj peev xwm ua tau zoo ib yam hauv Windows CMD thiab yuav ua li cas, ib yam li peb ua nrog Bash.

    Kuj ua tsaug rau kev qhia tawm koj kev ua haujlwm. Los ntawm lub npe Kuv xav hais tias nws yog hom kev thov cov txee uas hloov pauv txhua yam ntawm cov ntawv xa mus rau cov ntawv nyeem, tab sis kuv tsis nkag siab vim li cas.

    1.    Bruno cascio said

      Nyob Zoo Joaquin! Tsaug rau saib!

      Kuv tsis paub lub Windows Bash, theej kuv xav tias yog ib tus neeg siv siv console 99% yuav tsum yog los ntawm linux / MAC, haha

      Tsim los rau cov neeg siv ntawd, yog qhov program no ... Ntau zoo dua txawm tias hauv kev ua tau zoo yog siv Bash, tab sis nws yog teeb meem ntawm saj, kev lis kev cai, thiab lwm yam

      Ua tsaug!

  5.   Isaac diaz said

    Kev sib koom tes zoo phooj ywg, nws yog qhov yeej tau txais txiaj ntsig zoo rau peb cov uas nyiam sib cav nrog txoj cai.

    Koj tseem tuaj yeem tsim cov npe uas siv cov lus txib »ls> list.txt» los ntawm cov davhlau ya nyob twg.
    Kuv nyiam koj cov blog thiab kuv tsis nco qhov kev nkag .. Ua tsaug!

  6.   DMYSYS said

    Lub tswv yim zoo, txawm tias nws yog ib qho ntxiv rau qhov ncauj dua li nres lwm yam, nws yog qhov zoo rau peb cov uas nyiam saib txoj cai, ua tsaug

  7.   Algabe said

    Tsis tas li ntawd yog tias koj xav kom kuv qhia koj daim ntawv teev npe ntoo nrog txhua cov ntawv sau npe thiab nws cov ntsiab lus, nws yuav yog: tsob ntoo Music> out.txt
    lossis muab tag nrho txoj kev:]
    ntoo / txoj kev /> out.txt