# Adding this sed command to the deploy script

**URL:** <https://www.ruby-forum.com/t/adding-this-sed-command-to-the-deploy-script/113743>\
**Category:** Rails\
**Created:** [September 4, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/adding-this-sed-command-to-the-deploy-script/113743 "2007-09-04T16:25:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clemrock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c57346/32.png) [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Post date:** [September 4, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/adding-this-sed-command-to-the-deploy-script/113743/1 "2007-09-04T16:25:20Z")

</div>

Hello,

```
I have a small section of sed code I would like to add to the

```

deploy.rb script.

The code changes the image paths of our stylesheets

for file in \*; do  
sed -e ‘s//images/http://cache.reverbnation.com/images/g’  
“$file” \> “${file}.sub”  
rm “$file”  
mv “${file}.sub” “${file}”  
done

I am a newbie at writing and testing rake tasks and would like to know  
what the best way to test this before it goes live?

Thanks,  
Clem C Rock
