abinit/developers/maintainers/change.sh

18 lines
422 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright (C) 1998-2025 ABINIT group (XG)
#
# The purpose of this script is to change some
# expression by another in a whole set of files
# change file1 file2 ...
for file in "$@"
do
echo "working on $file"
rm -f tmp.file
sed -e 's!_largecore_!_lrgcore_!' $file > tmp.file
echo "changes done "
# put the modified file at the correct place
mv tmp.file $file
echo "file $file written "
done