sed -i s/lab/scrna-seq/g *
perl -pi -w -e 's/nine/joy/g;' *
Replace whole line containing a string using Sed
sed -i '/TEXT_TO_BE_REPLACED/c\This line is removed by the admin.' /tmp/foo
sed -i s/lab/scrna-seq/g *
perl -pi -w -e 's/nine/joy/g;' *
Replace whole line containing a string using Sed
sed -i '/TEXT_TO_BE_REPLACED/c\This line is removed by the admin.' /tmp/foo
Be First to Comment