Ndenza isichazi-magama samagama okugqitha asetyenziswa kakhulu, athandwayo okanye aqhelekileyo asetyenziswa ngabasebenzisi (โฆ Sukubuza ukuba kutheniโฆ HAHAHA), ngenxa yoku ndithatha isicatshulwa kwezinye izichazi-magama njl. njl.
Oko kukuthi, umzekelo ... sinefayile elandelayo: dlulisa.txt
Umxholo wayo:
Asdasd
Lola
uthando
Asdasd
windows
admin
linux
Asdasd
uthando
Njengoko sibona, siphindaphinde ยซuthando"Y"Asdasdยซ, Amaxesha amathathu okugqibela. Uyisusa njani imigca ephindiweyo?
Ukwenza kulula, ngalo myalelo:
cat pass.txt | sort | uniq > pass-listos.txt
Oku kuyakuvelisa ifayile ebizwa kudlula-ukulungele.txt eya kuba ne:
admin
Asdasd
linux
Lola
uthando
windows
Into eyenziwa ngumyalelo ilula KAKHULU ...
- ikati idlula.txt - ยปDwelisa umxholo wefayile.
- uhlobo - ยปHlela umxholo ngokomxholo.
- yodwa - ยปSusa imigca ephindiweyo.
- > ukudlula-ukulungele.txt - ยปIziphumo zemiyalelo yangaphambili, yibeke kwifayile-ulungele ukulungiswa.txt (leyo, njengoko ingekhoyo, iyakuyenza)
Yinto elula leyo ... Ndifumene nje ukuba umyalelo uhlobo ewe kulungile kakhulu ... kodwa, kunye yodwa, ziyigugu lobugcisa ๐
Ndiyathemba ukuba ube luncedo.
Phendula nge quote
Unokusebenzisa uhlobo -u.
Ndiyakuvuyela kwiblogi, ndiyayithanda!
Yhe Kulungile.
Akukho nto, enkosi kakhulu ngokuphawula ๐
Wamkelekile ๐
Phendula nge quote
Ingxaki yile yokuba iyatshintsha ngokulandelelana kwamagama, iyasebenza ... kodwa ekugqibeleni iziphumo zahluke kakhulu kwezasekuqaleni kulandelelwano (ekunokwenzeka ukuba kwimeko ethile lubalulekile)
Ewe, oku kuyalela amagama ngokwe-alfabhethi, ke ukuba umxholo ubufuneka NGAPHANDLE kokwahluka, esi sisombululo asisiyeyona ilungileyo.
Sukujikeleza, kuthekani ukuba awubeki myalelo wohlobo? ndicela ucinge kancinci kwaye ungabinayo yonke into ehlafunwayo.
Ukupasa ikati.txt | uniq> ukudlula-ukulungele.txt
ayisebenzi, ndizamile
ayisebenzi kuba imigca "ephindiweyo" kufuneka iqhubeke
I gracias
iluncedo kakhulu
Kulunge kakhulu! Isisombululo esilula nesicacileyo. Ndiyazithanda izinto ezinjeya ๐
Ndimele ndivume ukuba bendiya kwenza into kwiPython kodwa esi sisombululo silungile.
Gracias ..
Molo! kulunge kakhulu!
Ndinombuzo nceda
ingandisebenzela lo mzekelo ulandelayo:
IABCD 1111
I-DEFG 2222 45455
IABCD 1111
ULAWULO 2222
Imiqolo iyafana kodwa inezithuba kunye noonobumba abambalwa ... ngaba oku kuyakhangela kwigama elinye? okanye ngomgca? Ndiyacacisa?
ukusukela ngoku, ndiyabulela kakhulu.
Ikhefu
Sawubona, unjani?
Njengoko bendibonile, oku kuthelekisa imigca hayi iikholamu, ke kumzekelo ondinike wona ungasusa nokuba ngowoku-1 umgca okanye owesithathu, owesibini nowesine, nangona ziphantse zafana, azifani nge-3% kuba ikholamu yomahluko. ๐
Enkosi ngezimvo ^ - ^
Enkosi kuwe!! ngaphambi kokuba kuthathe iyure ye-oracle ukuphelisa iikopi ...
Ndiyifuna kwi-PHP: S
Uff ... Ndiyi-PHP, ndimfutshane kakhulu, andinguye umdwelisi nkqubo
Ndiyaxolisa
Kwi php kukho array_unique (โฆ) kumaxwebhu asemthethweni PHP uya kufumana imisebenzi emininzi ebalulekileyo nefanelekileyo.
Ngokumalunga nohlobo, ngaphandle kokuba uyayidinga, akuyomfuneko ... Ixesha lokuphumeza kunye nenkumbulo zichithwe. (kwinto eyenziwayo kwisithuba)
Nibuliso!
Wowu !! Isichazi-magama esinokusetyenziswa njengamandla angenabuntu! XD
Kulunge kakhulu ukudityaniswa kohlobo kunye ne-uniq! Indincede kakhulu ukususa imigca ephindiweyo.
Gracias
Amagqabantshintshi kaCarlos, nangona wayenekratshi, akavumelekile. Uthi ukusebenzisa:
Ukupasa ikati.txt | uniq> ukudlula-ukulungele.txt
nangona kunjalo into efunekayo kwi-uniq kukuba ifayile iyalelwe. Kuya kufuneka ukuba ucinge ngayo kancinci okanye ubuze ngaphambili.
Kulunge kakhulu, undigcinele ixesha elininzi usebenzisa i-bash yam
awk '! array_temp [$ 0] ++' pass.txt> kudlula-ukulungele.txt
Ngale migca iyasuswa ngaphandle koku-odola.
Enkosi kakhulu ngegalelo!
Nangona kunokuba kuhle ukuba sikwazi ukuyenza yodwa ngaphandle kokutshintsha iodolo, kodwa ke, ngumyalelo olula noluncedo!
Enkosi, indincede kakhulu ๐
Ndinayo le
C000006158880201502051056088364 C00-06158880
C000007601673201503051056088364 C00-07601673
C000008659304201504051056088364 C00-08659304
Inombolo yefowuni: 0809074070562015120818144287185REAรO RUBIรOS EMILIA DORIS
Inombolo yefowuni: 0809092979972016010818144287185REAรO RUBIรOS EMILIA DORIS
C000005398451201501231044214375 C00-05398451
C000007674996201503051000000286 C00-07674996
C000008514288201504051000000463 C00-08514288
C000011613498201506051056088070 C00-11613498
Ndiyifumana njani ukuba ipeyinte kuphela iikopi eziphindiweyo ngomrhumo ngamnye kwifayile kwaye ndishiye ezo zingaphindwanga kwenye?
Umbhalisi ukwisikhundla se-23 (iindawo ezili-10)
uhlobo -u -k 1,1 Ifayile.txt> iziphumo.txt
Olu hlobo lwefayile yintsimi yokuqala
2020 kwaye ndisasebenza, enkosi kakhulu!
Bแบกn co thแป hฦฐแปng dแบซn cรกch loแบกi bแป cรกc dรฒng trรนng lแบทp cแปงa nhiแปu ifayile yokubhaliweyo trong Linux okanye Windows ฤฦฐแปฃc khรดng? Cลฉng nhฦฐ trฦฐแปng hแปฃp cแปงa bแบกn, khi tรดi tแบกo file tแปซ ฤiแปn vรฌ tรดi chia nแปi dung ra nรชn Cรณ khรก nhiแปu file vร chแบฏc chแบฏn con nhiแปu dรฒng trรนng lแบทp giแปฏa Cรกc ifayile. Vรญ dแปฅ: File 1 cแปงa tรดi co 5 dรฒng, file 2 co 15 dรฒng (co 2 dรฒng trรนng lแบทp vแปi File 1. Tรดi muแปn co kแบฟt quแบฃ, File 1 vแบซn giแปฏ nguyรชn 5 dรฒng, File 2 thรฌ only bแป 2 dรฒng giแปng file 1 .
Nhฦฐ bแบกn biแบฟt co nhiแปu li do chรบng ta ko thแป gแปp cรกc fayile txt ฤรณ lแบกi vแปi nhau, vรฌ nhแปฏng umbhalo wefayile tแปซ ฤiแปn rแบฅt ฦฐ lร nhiแปu kรฝ, chแบณng hแบกn nhฦฐ Rockyou. Thแปฑc tแบฟi muแปn thแปฑc hiแปn ฤiแปu nร y bรชn Windows hฦกn, vร chแบฏc chแบฏn ko thแป gแปp chรบng แป bรชn Windows ฤฦฐแปฃc. ๐ Hy vแปng nhแบญn ฤฦฐแปฃc phแบฃn hแปi tแปซ bแบกn!