Finished fitting

This commit is contained in:
Artyom Titov 2026-07-15 23:56:53 +03:00
commit 6fae6f8296
106 changed files with 791703 additions and 22655 deletions

View file

@ -1,47 +1,30 @@
@echo off
chcp 65001 > nul
if "%~1"=="" (
echo You must specify the name prefix >&2
echo E.g. prefix "my_prefix" : >&2
echo h___фитирование.nb --^> my_prefix_фитирование.nb >&2
exit /b 1
) else (
if exist "h____фитирование.nb" (
rename "h____фитирование.nb" "%~1_фитирование.nb"
) else (
echo skipped "h____фитирование.nb" due to absence
)
if exist "h____pr_Qw2.nb" (
rename "h____pr_Qw2.nb" "%~1_pr_Qw2.nb"
) else (
echo skipped "h____pr_Qw2.nb" due to absence
)
if exist "h____pr_Qw1.nb" (
rename "h____pr_Qw1.nb" "%~1_pr_Qw1.nb"
) else (
echo skipped "h____pr_Qw1.nb" due to absence
)
if exist "h____osc_Qw2.nb" (
rename "h____osc_Qw2.nb" "%~1_osc_Qw2.nb"
) else (
echo skipped "h____osc_Qw2.nb" due to absence
)
if exist "h____osc_Qw1.nb" (
rename "h____osc_Qw1.nb" "%~1_osc_Qw1.nb"
) else (
echo skipped "h____osc_Qw1.nb" due to absence
)
if exist "h____gid_Qw2.nb" (
rename "h____gid_Qw2.nb" "%~1_gid_Qw2.nb"
) else (
echo skipped "h____gid_Qw2.nb" due to absence
)
if exist "h____gid_Qw1.nb" (
rename "h____gid_Qw1.nb" "%~1_gid_Qw1.nb"
) else (
echo skipped "h____gid_Qw1.nb" due to absence
)
)
#!/bin/zsh
if [[ -z "$1" ]]; then
echo "You must specify the name prefix" 1>&2
echo 'E.g. prefix "my_prefix" :' 1>&2
echo 'h___фитирование.nb --> my_prefix_фитирование.nb' 1>&2
exit 1
fi
prefix="$1"
suffixes=(
"фитирование"
"pr_Qw2"
"pr_Qw1"
"osc_Qw2"
"osc_Qw1"
"gid_Qw2"
"gid_Qw1"
)
for suf in "${suffixes[@]}"; do
src="h____${suf}.nb"
dst="${prefix}_${suf}.nb"
if [[ -e "$src" ]]; then
mv -- "$src" "$dst"
else
echo "skipped \"$src\" due to absence"
fi
done