Coderwall
Ruby Python JavaScript Front-End Tools iOS
More Tips
Ruby Python JavaScript Front-End Tools iOS PHP Android .NET Java Jobs
Jobs
Sign In or Up
Last Updated: February 25, 2016
·
1.187K
· artjock

sed replace with condition

#shell
#sed
#unix
sed "/condition/{s/from/to/g}"
#shell
#sed
#unix

Written by Artur Burtsev

Say Thanks
Respond

Related protips

Sed recursively with the help of ack and xargs

3.332K
1

Quick convert Win new lines character in a dir

431
0

Add git branch name to bash prompt

434.8K
4

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Best #Shell Authors
itseranga
613.9K
#shell
#cryptography
#docker
jmarizgit
325.3K
#shell
#Javascript
#PHP
dotcode
231.8K
#shell
#Web Performance
#Python
mehikmat
206K
#shell
#java
#Python
filosottile
187.5K
#shell
#python
#Go
Related Tags
#shell
#sed
#unix
Sponsored by
#native_company#
#native_desc#
#native_cta#
Filed Under

Tools
Awesome Job
See All Jobs

Post a job for only $299
Thanks to our sponsor
Sponsored by #native_company# — Learn More
#native_title# #native_desc#
#native_cta#
@coderwall
APM product comparisons Contact Privacy Terms

Copyright 2026

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.