psdlag-agn/scripts/fix_thor_names.sh

22 lines
565 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/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
done