Keyword

http://addurl.nu mesothelioma survival rates,structured settlement annuity companies,mesothelioma attorneys california,structured settlements annuities,structured settlement buyer,mesothelioma suit,mesothelioma claim,small business administration sba,structured settlement purchasers,wisconsin mesothelioma attorney,houston tx auto insurance,mesotheliama,mesothelioma lawyer virginia,seattle mesothelioma lawyer,selling my structured settlement,mesothelioma attorney illinois,selling annuity,mesothelioma trial attorney,injury lawyer houston tx,baltimore mesothelioma attorneys,mesothelioma care,mesothelioma lawyer texas,structered settlement,houston motorcycle accident lawyer,p0135 honda civic 2004,structured settlement investments,mesothelioma lawyer dallas,caraccidentlawyer,structured settlemen,houston mesothelioma attorney,structured settlement sell,new york mesothelioma law firm,cash out structured settlement,mesothelioma lawyer chicago,lawsuit mesothelioma,truck accident attorney los angeles,asbestos exposure lawyers,mesothelioma cases,emergency response plan ppt,support.peachtree.com,structured settlement quote,semi truck accident lawyers,auto accident attorney Torrance,mesothelioma lawyer asbestos cancer lawsuit,mesothelioma lawyers san diego,asbestos mesothelioma lawsuit,buying structured settlements,mesothelioma attorney assistance,tennessee mesothelioma lawyer,earthlink business internet,meso lawyer,tucson car accident attorney,accident attorney orange county,mesothelioma litigation,mesothelioma settlements amounts,mesothelioma law firms,new mexico mesothelioma lawyer,accident attorneys orange county,mesothelioma lawsuit,personal injury accident lawyer,purchase structured settlements,firm law mesothelioma,car accident lawyers los angeles,mesothelioma attorneys,structured settlement company,auto accident lawyer san francisco,mesotheolima,los angeles motorcycle accident lawyer,mesothelioma attorney florida,broward county dui lawyer,state of california car insurance,selling a structured settlement,best accident attorneys,accident attorney san bernardino,mesothelioma ct,hughes net business,california motorcycle accident lawyer,mesothelioma help,washington mesothelioma attorney,best mesothelioma lawyers,diagnosed with mesothelioma,motorcycle accident attorney chicago,structured settlement need cash now,mesothelioma settlement amounts,motorcycle accident attorney sacramento,alcohol rehab center in florida,fast cash for house,car accident lawyer michigan,maritime lawyer houston,mesothelioma personal injury lawyers,personal injury attorney ocala fl,business voice mail service,california mesothelioma attorney,offshore accident lawyer,buy structured settlements,philadelphia mesothelioma lawyer,selling structured settlement,workplace accident attorney,illinois mesothelioma lawyer

Cara :: Menggabungkan Dua File dengan Terminal Linux

3/27/2016
الســــلام علـيـــكم ورحمـــة الـلّــه وبــركــاتـــه 
Cara Menggabungkan Dua File dengan Terminal Linux
Cara Menggabungkan Dua File dengan Terminal Linux

Bagaimana Cara Menggabungkan Dua File dengan Terminal Linux ? Misalnya, kita mempunya 2 file, file yang pertama bernama 1.txt dengan ukuran file 200MB dengan baris hingga ribuan atau jutaan baris didalam nya, sedangkan file kedua  bernama 2.txt dengan ukuran file 1GB dengan baris hingga jutaan atau ratusan juta baris didalam nya, terkadang untuk membuka file yang beratus-ratus juta baris, akan membuat memory bekerja lebih , padahal kita hanya ingin memasukkan isi yang ada pada file 1.txt ke file 2.txt , artinya menggabungkan isi yang ada pada file 1.txt ke 2.txt ... seperti itu lah logika nya... 

oke langsung saja, letakkan 2 file yang ingin di gabungkan didalam 1 folder ...

buka terminal, lalu masuk ke lokasi 2 file yang ingin di gabungkan seperti ini..


kita asumsikan isi file 1.txt ingin di masukkan ke isi file 2.txt tanpa menghapus isi yang ada pada file 2.txt, tapi sebelumnya , kita cek dulu baris kedua file tersebut dengan perintah 

root@sarzafi~# wc -l 1.txt


diketahui baris 1.txt berjumlah = 1.707.657 baris

lanjut ke file yang kedua

root@sarzafi~# wc -l 2.txt


diketahui baris 2.txt berjumlah = 221.480.452 baris

maka sekarang kita pindahkan jumlah baris terkecil (yaitu 1.txt) ke baris terbesar (yaitu 2.txt) dengan perintah

root@sarzafi~# cat 1.txt >> 2.txt


disini kita sudah memasukkan isi yang ada pada file 1.txt ke file 2.txt tanpa menghapus isi file 2.txt, coba hitung kembali jumlah baris file 2.txt dengan perintah


root@sarzafi~# wc -l 2.txt

kita lihat perbedaannya


sekarang jumlah baris pada file 2.txt berjumlah 
= 223.188.109 baris
sebelumnya berjumlah 
= 221.480.452 baris

 selesai ... semoga bermanfaat

jika ada yang kurang jelas bisa lihat video nya



Bila Ingin Copas, Harap Sertakan Sumber ! Jika Ada Pertanyaan silahkan Inbok ke Kesini DMCA.com Protection Status
Bagikan ke Facebook Bagikan ke Twitter Bagikan ke WhatsApp Bagikan ke Google+