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.094K
· 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.243K
1

Quick convert Win new lines character in a dir

379
0

Add git branch name to bash prompt

427.8K
4

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Best #Shell Authors
itseranga
603.1K
#shell
#cryptography
#docker
jmarizgit
315.9K
#shell
#Javascript
#PHP
dotcode
228.4K
#shell
#Web Performance
#Python
mehikmat
203K
#shell
#java
#Python
filosottile
185.7K
#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 2025

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