Skip to content

Instantly share code, notes, and snippets.

@satoyuichi
Last active May 21, 2020 13:51
Show Gist options
  • Save satoyuichi/cd1ea36554def3053c35c8111eebd253 to your computer and use it in GitHub Desktop.
Save satoyuichi/cd1ea36554def3053c35c8111eebd253 to your computer and use it in GitHub Desktop.

ls モドキの作成

ls クローンのプログラム lsorg を作成してください。オプションの動作までをコピーする必要はなく、実行したディレクトリにあるファイルを列挙するだけで構いません。出力フォーマットも任意とします。 ただし、 ls | less を実行した時のように、 lsorg | less とすると、1行ごとに列挙される動作にしてください。

目的

  • システムコールの使い方に慣れる
  • 標準出力先に応じた処理の切り替えを学ぶ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment