简体   繁体   中英

Change delimiter using vi text editor, linux

I need to remove " : " delimiter from the file and replace it with "---" (three dashes) using VI text editor. What command do I use? Thanks

The simplest solution is a common search/replace:

:%s/:/---/g

Or, remove the trailing g if you only want to replace the first occurence in each line.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM