Find and replace in Unix Using SED

Опубликовано: 20 Май 2026
на канале: Linuxanthus
9,712
32

Common Find and Replace Commands:
sed 's/find/replace/' filename

To replace all search terms
sed 's/find/replace/g' filename

To replace without case sensitive
sed 's/find/replace/gi' filename

To replace withing a range
sed '1,/search-term/s/find/replace/gi' filename


This command will help to find and replace string in a file. You can find and replace multiple files using SED.