blob: 5a177616f46eb8e01948e9aea5a6e11702b33059 [file] [log] [blame]
david_williamsaf4b52a2009-12-05 04:43:35 +00001#!/bin/sh
david_williams678f5ad2008-09-18 03:57:03 +00002
3# example as used in script
4 fromString="webtools/committers"
5 if [ "patches" == $distribution ]
6 then
7 toString="webtools/patches"
8 else
9 toString="webtools/downloads"
10 fi
11 replaceCommand="s!${fromString}!${toString}!g"
12
13 # remember TODIR already has a slash
14 ${REMOTE_SSH_COMMAND} perl -w -pi -e ${replaceCommand} ${TODIR}${dropDirName}/*.php
15
16# example of one liner
17 find ./features/ -name "*.jar" | sort | sed -e 's/\.jar$//' > features-jar.txt
18
19# example of one liner
20 find ./ -name "consoleLogs.php" | sed -iORIG -e 's/aDirectory\.closedir/aDirectory->close/'
21