david_williams | 678f5ad | 2008-09-18 03:57:03 +0000 | [diff] [blame^] | 1 | |
| 2 | # example as used in script |
| 3 | fromString="webtools/committers" |
| 4 | if [ "patches" == $distribution ] |
| 5 | then |
| 6 | toString="webtools/patches" |
| 7 | else |
| 8 | toString="webtools/downloads" |
| 9 | fi |
| 10 | replaceCommand="s!${fromString}!${toString}!g" |
| 11 | |
| 12 | # remember TODIR already has a slash |
| 13 | ${REMOTE_SSH_COMMAND} perl -w -pi -e ${replaceCommand} ${TODIR}${dropDirName}/*.php |
| 14 | |
| 15 | # example of one liner |
| 16 | find ./features/ -name "*.jar" | sort | sed -e 's/\.jar$//' > features-jar.txt |
| 17 | |
| 18 | # example of one liner |
| 19 | find ./ -name "consoleLogs.php" | sed -iORIG -e 's/aDirectory\.closedir/aDirectory->close/' |
| 20 | |