亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

linux中vi編輯器的練習(xí)心得

 更新時(shí)間:2017年11月20日 17:10:58   作者:不來也不去  
給大家分享一下在linux中練習(xí)vi編輯器的心得以及需要避免的一些坑。

1. 用vi編寫一個(gè)文檔test.txt,將其存放在用戶在用戶主目錄下,內(nèi)容如下:

Plagiarism is breach of Integrity.It is a form of cheating in assessment and may occur in oral,written or visual presentations.

Plagiarism covers a of inappropriate behaviours,includeing:

failure to properly document a source Collusion between students or other people or tutors Copying another student's work

Purchasing pre-written or on-demand papers from the numerous paper mills and cheat sites Submitting work that you have previously submitted for another course

(1)    將此文件另存為test2.txt,將其存放在用戶主目錄中。

先使用vi編輯器編輯test.txt在使用mv命令修改其名稱

 

最后使用mv移動到用戶主目錄中

(2)    第一行缺少一個(gè)單詞Academic,將它加到單詞Intergrity的前面。

 

(3)   第三行的varity少了一個(gè)e,應(yīng)改為variety,請改正。

 

(4)    failure的但一個(gè)字母應(yīng)為大寫F,請改正。

 

(5)   將倒數(shù)第一,第二行的順序顛倒過來(用復(fù)制和粘貼功能)。

 

(6)   刪除包含Collusion的那一行。

 

(7)    將/etc/passwd文件的內(nèi)容讀入到文章的結(jié)尾處。

 

(8)    有一個(gè)擴(kuò)展命令可以快速地實(shí)現(xiàn)全部替換操作,現(xiàn)用此命令將所有的單詞Plagiarism替換為PLAGIARISM,命令如下:

:1,$s/Plagiarism/PLAGIARISM/g

 

(9)    撤銷上一操作(用命令 u),用下面的命令實(shí)現(xiàn)替換,每一次替換時(shí)需要用戶確認(rèn)。命令如下:

:1,$s/Plagiarism/PLAGIARISM/gc

 

(10)  檢查修改是否正確,確認(rèn)無誤后保存文件并退出。

 

以上就是本篇文章關(guān)于vi編輯器的練習(xí)心得的全部內(nèi)容,希望我們的整理對你有用。

相關(guān)文章

最新評論