0

http://www.howtogeek.com

Let's say you have a directory with hundreds of files with the wrong file names, and you'd like to replace every filename containing test with prod. (this is a contrived example). We can easily do this with the "for" command in bash, combined with a little bit of bash goodness. Today we'll learn how to replace text in a variable in a for loop.

Full story »
dave's picture
Created by dave 17 years 12 weeks ago
Category: End User   Tags:

Best karma users