skip to main
|
skip to sidebar
Linux Life
Sunday, August 26, 2007
How to replace a string in all files
For instance you move all your source from Fedora to Ubuntu. The include file change from
to
you need do this in the src directory
perl -pi -e "s/glpk\/glpk\.h/glpk\.h/g" *
General form is :
perl -pi -e "s/original/newpattern/g" *
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
My other blog
Linux Help
Vista world
Blog Archive
►
2010
(2)
►
October
(2)
►
2009
(7)
►
May
(1)
►
March
(5)
►
February
(1)
►
2008
(13)
►
September
(3)
►
May
(2)
►
April
(3)
►
March
(4)
►
February
(1)
▼
2007
(16)
►
November
(1)
►
October
(1)
►
September
(1)
▼
August
(9)
Making a backup of the partition entries
Do you hate ubuntu's color and themes
Alias in Linux
Thinkpad Second hard drive adapter
How to replace a string in all files
Opera browser!
Snapshot the screen.
From Fedora to Ubuntu
Partition table recovery
►
July
(1)
►
April
(1)
►
March
(1)
►
February
(1)
No comments:
Post a Comment