Besonderhede van voorbeeld: 3608343837518132246

Metadata

Data

English[en]
For example, a file subst.sed can be created with contents: #!/bin/sed -f s/x/y/g The file may then be made executable by the current user with the chmod command: chmod u+x subst.sed The file may then be executed directly from the command line: subst.sed inputFileName > outputFileName The -i option, introduced in GNU sed, allows in-place editing of files (actually, a temporary output file is created in the background, and then the original file is replaced by the temporary file).
Chinese[zh]
/bin/sed -f s/x/y/g 然后,当前用户可以使用chmod命令使文件可执行: chmod u+x subst.sed 然后可以直接从命令行执行该文件: subst.sed inputFileName > outputFileName GNU sed中引入的-i选项允许就地编辑文件(实际上,在后台创建了一个临时输出文件,然后将原始文件替换为临时文件)。

History

Your action: