sed

package
v0.0.0-...-64249c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2023 License: MPL-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Replace

func Replace(filePath string, src string, replace string)

Replace : Replace a motif in a file through a sed bash command. Here is an example of a command: cmd = "sed -i -e 's/src/replace/' filePath" and the function arguments : filePath := "/absolute/Path/to/file.ext" src := "isAdmin=false" replace := "isAdmin=true"

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL