Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 474 Bytes

README.md

File metadata and controls

12 lines (10 loc) · 474 Bytes

项目简介

  • 名称 : ctail
  • 简介 : C语言实现tail -f 功能
  • 开发语言:c
  • 当前线上版本:0.0.1

项目概述

  • ./ctail $file $offset
  • $file 为文本绝对路径,$offset 为是否从文本开头读取,0代表从文本开头读取,-1代表从文本末尾开始读取
  • 当文本内容被清空时,工具会重置位置,从末尾开始读数据