项目作者: hamata0222

项目描述 :
This script gets contents from a file
高级语言: Python
项目地址: git://github.com/hamata0222/GetTagContent.git
创建时间: 2018-10-10T15:20:00Z
项目社区:https://github.com/hamata0222/GetTagContent

开源协议:MIT License

下载


GetTagContent

This script gets content from a file.
The file is specified by expression below.

  1. <path-to-the-file> (<line-number>)
  2. <path-to-the-file> : The full path to the file
  3. <line-number> : The number of line in the file to get the content

Usage

You can give the script a argument to input file.
Or no argument, the script want you to input file.

  1. [example.txt]
  2. /path/to/the/file/file_name (10)
  3. /path/to/the/file/file_name (1234)
  1. $ python GetTagContent.py example.txt

Result

You can see the result of script in the file which has the name _result after the name of the input file.
If your input file name is example.txt, the result file name is example_result.txt.

  1. [example_result.txt]
  2. /path/to/the/file/file_name (10): the content of the file
  3. /path/to/the/file/file_name (1234): the content of line 1234