MsSpec-DFM/New_libraries/Data/replace.sh

16 lines
208 B
Bash
Raw Normal View History

2022-02-02 16:19:10 +01:00
#!/bin/bash
#
# Replaces STRING1 by STRING2 in all the files
# named FILENAME*.dat
#
#
# Usage: replace STRING1 STRING2 FILENAME
#
#
name=$3*.dat
#
sed -i "s/`echo $1`/`echo $2`/g" `echo $name`
#
exit