psdlag-agn/scripts/fix_thor_names.sh

22 lines
565 B
Bash
Raw Normal View History

#!/usr/bin/env bash
for analysis in analyses/*A_*
do
if [[ $analysis == "analyses/*A_*" ]]; then continue; fi
echo Restoring unicode characters to $analysis.
new_name=$(basename $analysis|
#sed 's|_\([0-9]\+\)|\(𝛌=\1|g'|
sed 's|_|≺|'|
sed 's|A|Å|'|
sed 's|A_|Å%|'|
sed 's|_|{|'|
sed 's|_|;|'|
sed 's|_||g'|
#sed 's|_|}|'|
sed 's|≺|_≺_|'|
sed 's|Å%|Å_|'|
sed 's|Δt|Δt|'|
sed 's|err|σ∊|')}
mv $analysis analyses/$new_name
2016-07-26 17:21:25 +00:00
done