Use the "SED" to change an instance of the content of the file (cannot add parameters)

xiaoxiao2021-03-06  23

# sed.sh:

MV File file.tmp

# Modify file.tmp content, then output to File

SED 'S / 2/3 /' File.TMP> File

# 除 临 ​​临 file.tmp

Rm -f file.tmp

# Replace "2" in the file file into "3".

转载请注明原文地址:https://www.9cbs.com/read-43131.html

New Post(0)