https://stackoverflow.com/questions/7657647/combining-two-sed-commands
sed - stream editor for filtering and transforming text
Sed is a stream editor.
input and output file can be specified as follow
sed "s/regexp/replacement/g" inputfile > outputfile
flag -i is used to save the stream output in the input file.
then specified output file argument is ignored and the change will be saved in the input file
g to replace as many times as the pattern is detected more than once per each line
without it, sed does the replacement for the first pattern detected by each line.
CHAINING SED / COMBINING SED
https://stackoverflow.com/questions/7657647/combining-two-sed-commands
sed is a scripting language. you can separate commands with semicolon or newline
ex
$sed -i 's/File//g;s/MINvac\.pdb//g' filessldkjaginadkljef
sed - stream editor for filtering and transforming text
Sed is a stream editor.
input and output file can be specified as follow
sed "s/regexp/replacement/g" inputfile > outputfile
flag -i is used to save the stream output in the input file.
then specified output file argument is ignored and the change will be saved in the input file
g to replace as many times as the pattern is detected more than once per each line
without it, sed does the replacement for the first pattern detected by each line.
CHAINING SED / COMBINING SED
https://stackoverflow.com/questions/7657647/combining-two-sed-commands
sed is a scripting language. you can separate commands with semicolon or newline
ex
$sed -i 's/File//g;s/MINvac\.pdb//g' filessldkjaginadkljef
댓글
댓글 쓰기