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.