P2 on Madsen
Computer knowledge sharing
Search for:
Recent Comments
Recent tags
mdadm
( 1 )
Software RAID
( 1 )
Debian
( 5 )
Ubuntu
( 1 )
docker
( 1 )
aws
( 1 )
bash
( 1 )
environment
( 1 )
export
( 1 )
Mac OS X
( 2 )
homebrew
( 3 )
Pi zero
( 1 )
Raspberry PI
( 1 )
rsyslog
( 1 )
scope
( 1 )
npm
( 1 )
Python
( 2 )
disable 2g
( 1 )
kitkat
( 1 )
force 3g
( 1 )
android
( 1 )
force 4g
( 1 )
one-liner
( 1 )
search replace
( 1 )
subversion
( 1 )
10.9
( 1 )
E155036
( 1 )
Maverick
( 1 )
Linux
( 3 )
usermod
( 1 )
uid
( 1 )
CentOS
( 2 )
Windows 8
( 4 )
Scroll
( 1 )
TYPO3 Flow
( 1 )
Archives
October 2024
(1)
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: one-liner
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