0

I need help creating a shell script to search .yml files in a specific folder for a line containing money: and then replacing that line with money: 1000

1 Answer 1

2

You could try sed. E.G:

sed -i 's/\(.*money:.*\)/money: 1000/g' somefile.yml
1
  • Thanks that worked perfectly. I appreciate the quick answer.
    – era878
    May 12, 2012 at 6:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .