Skip to content

Latest commit

 

History

History
16 lines (15 loc) · 223 Bytes

README.md

File metadata and controls

16 lines (15 loc) · 223 Bytes

tail

  • tail コマンドを実装した

実行例

$ ./tail main.cpp -n 5
    {
        fprintf(stderr, "TailFile error, %s\n", e.what());
        return 1;
    }
}
$ echo -e "a\nb\nc\nd\ne" | ./tail -n 3
c
d
e