#!/bin/bash

## secret change in a files, i.e., with no timestamp
## change

if [ -z $1 ]; then
    echo I need a file argument
    exit
fi

fufi=$1
if [ ! -f $fufi ]; then
    echo "I do not see your file $fufi"
    exit
fi

from=$2
if [ -z "$from" ]; then
    echo "I need a from string argument"
    exit
fi

## may be empty
to=$3
cp -a $fufi $fufi.org
perl -pi -e "s|$from|$to|" $fufi
touch -r $fufi.org $fufi
