P2 on Madsen
Computer knowledge sharing
Search for:
Recent Comments
Recent tags
aws
( 1 )
docker
( 1 )
environment
( 1 )
bash
( 1 )
export
( 1 )
homebrew
( 3 )
Mac OS X
( 2 )
Debian
( 4 )
Raspberry PI
( 1 )
Pi zero
( 1 )
rsyslog
( 1 )
scope
( 1 )
npm
( 1 )
Python
( 2 )
force 3g
( 1 )
kitkat
( 1 )
force 4g
( 1 )
android
( 1 )
disable 2g
( 1 )
search replace
( 1 )
one-liner
( 1 )
Maverick
( 1 )
10.9
( 1 )
subversion
( 1 )
E155036
( 1 )
CentOS
( 2 )
uid
( 1 )
Linux
( 3 )
usermod
( 1 )
Scroll
( 1 )
Windows 8
( 4 )
nginx
( 1 )
TYPO3 Flow
( 1 )
rewrite
( 1 )
Port forwarding
( 1 )
Archives
November 2020
(1)
September 2020
(1)
April 2019
(2)
February 2019
(1)
June 2017
(2)
October 2014
(1)
March 2014
(3)
February 2014
(2)
August 2013
(1)
April 2013
(9)
Tagged: search replace
Toggle Comment Threads
|
Keyboard Shortcuts
Mads Madsen
10:20
on
March 11, 2014
Permalink
|
Reply
Tags: one-liner, search replace
One-liner search and replace
Shell
katy:~ mm$ perl -pi.bak -e "s/search/replace/g" file.sql
1
katy
:
~
mm
$
perl
-
pi
.bak
-
e
"s/search/replace/g"
file
.sql
Reply
Cancel reply
Required fields are marked
*
Name
*
Email
*
Website
Δ
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel
Reply