Extract First Lines From a File

Extract First Lines From a File

Extract First Lines From a File is a wrapper for the UNIX head command, which can be used to select and print out to a file a designated number of lines from a text file.

Quick Start

Test Data

All files are located in the Community Data directory of the iPlant Discovery Environment at the following path:

Community Data > iplantcollaborative > example_data > extract_first_lines_from_a_file

Input File(s)

Use SampleText.txt as test data.

Parameters Used in App

When the app is run in the Discovery Environment, use the following parameters with the above input file(s) to get the output provided in the next section below.

  • Default parameters only, no further configuration needed.

Output File(s)

Expect a text file as output named head_output.txt.

Tool Source for App