Git Product home page Git Product logo

twins2mkdir's Introduction

twins2mkdir

Mentioned in Awesome Tsukuba

TWINS の履修科目を表す CSV ファイルから,科目ごとにディレクトリを作成するシェルスクリプト

依存関係

twins2mkdir は以下のコマンドを使用しています.

  • bash
  • jq

インストール

Homebrew を通してインストールすることができます.

brew install yudukikun5120/twins2mkdir/twins2mkdir

使い方

  1. TWINS の「履修登録・登録状況照会」から履修科目の CSV ファイルをダウンロードする

  2. 科目ごとのディレクトリを作成するディレクトリへのパスを COURSES_DIR 変数として設定する

bash の場合

echo 'export COURSES_DIR="/path/to/dir"' >> ~/.bashrc && source ~/.bashrc

zsh の場合

echo 'export COURSES_DIR="/path/to/dir"' >> ~/.zshrc && source ~/.zshrc
  1. 第 1 引数に TWINS からダウンロードした CSV ファイルのパスを指定し,twins2mkdir を実行する
twins2mkdir /path/to/RSReferCsv.csv
  1. 次の図のように,科目ごとのディレクトリが作成される
COURSES_DIR ┬ 学問への誘い
            ├ 基礎**語AI
            ├ 国語I
            └ 力学1

次に示すように,本スクリプトは対話的に実行されます.

## まだディレクトリが存在しない場合
Created /path/to/dir/coursename

## すでにディレクトリが存在する場合
/path/to/dir/coursename already exists.

貢献

本レポジトリに対する貢献は歓迎します.

著作権表示

twins2mkdir は MIT ライセンスの下で公開されています. 詳しくは LICENSE をご覧ください.

また twins2mkdir は以下のライブラリを使用しています.

詳しくは NOTICE.md をご覧ください.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.