Giter Club home page Giter Club logo

simpletailcommand's Introduction

SimpleTailCommand

C言語でLinuxのtailコマンドを実装.

仕様

  • オプション実装
    ※オプションと入力の間にスペース必須.
    ※コマンド引数において,第1引数に読み込みファイル,第2引数以降にオプションを入力すること.
    • [-n N]
      ・最後からN行だけ表示させる.
      ・指定なし(デフォルト)で10行.

実行例

$ ./a.out tail_readme.txt
with multi-byte-characters.
そしてこれはマルチバイト
文字があっても使用可能です.
But we should keep a rule 
to add a break at the last line, to add options after the second argument(the first argument is the file), 
to add " "(space) between "-" and argument in option.
ただし,最後の行には改行を加えておく,
コマンド引数1つ目に読み込みファイル,2つ目以降にオプションとする,
オプションについては「-」と入力値の間にスペースを置く,
といったルールを守っておく必要があります.
$ ./a.out tail_readme.txt -n 3
コマンド引数1つ目に読み込みファイル,2つ目以降にオプションとする,
オプションについては「-」と入力値の間にスペースを置く,
といったルールを守っておく必要があります.
$

simpletailcommand's People

Contributors

kagenomoheji avatar

Stargazers

 avatar

Watchers

 avatar

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.