blob: e78d46db6acc511d0d2e85fdfbf91da445c42d64 [file] [log] [blame]
david_williams678f5ad2008-09-18 03:57:03 +00001
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