blob: a8a34d39403260cc485f329d2c3ef0957529643c [file] [log] [blame]
david_williams51256372010-04-20 21:04:25 +00001#!/usr/bin/env bash
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