Skip to content

Instantly share code, notes, and snippets.

@hig3r
Created July 10, 2020 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hig3r/4605a2b99ca470ae1ebddba6e9c10c64 to your computer and use it in GitHub Desktop.
Save hig3r/4605a2b99ca470ae1ebddba6e9c10c64 to your computer and use it in GitHub Desktop.
manaba の複数オンライン入力レポート課題提出物を学生別に連結
mkdir all
for /d %%d in (report*) do (
for %%f in (%%d\*.txt) do (
echo. >> all\%%~nxf
echo ---- %%d >> all\%%~nxf
type %%f >> all\%%~nxf
)
)
% 「提出物を1つのフォルダにまとめる 」にチェックを入れ, オンライン入力レポート課題ごとに zip をダウンロードする.
% 空のフォルダ(例) assignments を作り, その中にすべての zip を「すべて展開」する. (例) report-933913-1007977 など複数のサブフォルダができ, その中に .txt などの学生別ファイルがはいっている状態になる.
% コマンドプロンプト起動. cd assignments した後, concatenate.bat を実行.
% assignments のサブフォルダ allの中の, ファイル名=学籍番号のファイルに, すべての提出物が連結される. 未提出の課題は(タイトルも)含まれない
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment