Skip to content

Instantly share code, notes, and snippets.

View mdyn's full-sized avatar

Maxim Dyn mdyn

  • Cogniance
  • Kiev
View GitHub Profile
@mdyn
mdyn / replace.sh
Created November 7, 2012 15:08
Replace old to new
#!/bin/bash
DIRW=$1
echo "path $DIRW"
find $DIRW -type f -exec sed -i 's/<departDate>/<startDate>/g' {} \;
find $DIRW -type f -exec sed -i 's/<arriveDate>/<endDate>/g' {} \;
find $DIRW -type f -exec sed -i 's/<departTime>/<startTime>/g' {} \;
find $DIRW -type f -exec sed -i 's/<arriveTime>/<endTime>/g' {} \;
find $DIRW -type f -exec sed -i 's/<departAirport>/<startCode>/g' {} \;