Relaced file functions with bash script