HN-Community
[ask]edit file di terminal - Printable Version

+- HN-Community (https://hacker-newbie.org)
+-- Forum: Miscellaneous (https://hacker-newbie.org/forum-86.html)
+--- Forum: General Computing (https://hacker-newbie.org/forum-16.html)
+---- Forum: Batch, Shell, DOS and Command Line Interpreters (https://hacker-newbie.org/forum-22.html)
+---- Thread: [ask]edit file di terminal (/thread-8698.html)



[ask]edit file di terminal - Dika_xb - 06-02-2011

di google ada caranya tapi faidi mulu Huwaa

bro
gimana cara edit file di terminal linux

ex :
ada file dika.txt
yg berisi : dika ganteng

aku mau nambah di baris selanjutnya di tambah : dika juga keren

gimana tuh bro Bingung

sorry yah ngerepotinBingung

2. di file dika.txt
ada kalimat : dika jelek

gimana command untuk menghapus kalimat itu di file dika.txt

makasih Bonyok


RE: [ask]edit file di terminal - compLann - 06-02-2011

pake fungsi NANO atau PICO aja say... Bigsmile


RE: [ask]edit file di terminal - N4is3N - 06-02-2011

Code:
echo 'dika ganteng' >> dika.txt

Kalo pengen enteng, pake NANO aja bro.


RE: [ask]edit file di terminal - Up_ - 06-02-2011

pake nano dika.txt or pico dika.txt

terus save : cntrl + Z .. pilih : Y

and OK


RE: [ask]edit file di terminal - Dika_xb - 06-02-2011

problem solved Ngakak