Jump to content

Command Crate ¿about?

Replace a specific string in a file (sed)

sed -i 's/^String=.*$/New String = 22/g'

Replaces lines starting with "String=" with "New String = 22" in a file, modifying it in place.

text processing [kb:7]