laplace's demon

Linux komut satırından bul ve değiştir

by on Jun.05, 2010, under Uncategorized

Kolay, şöyle ki:

sed -i ’s/[orginal_text]/[new_text]/g’ filename.txt

ya da

grep -R –files-with-matches ‘OLDSTRING’ . | sort | uniq | xargs perl -pi~ -e ’s/OLDSTRING/NEWSTRING/’

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...