Skip to content

python script to pull the first and last line of file

Notifications You must be signed in to change notification settings

JacobLibby/head_tail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

head_tail

This is a simple python program that pulls the first and last line of a file

Set up

  1. Edit head_tail.py and change input_filename and output_filename
  2. Ensure that head_tail.py is in the same directory as your desired input_file
  3. Run code

1: Open in VS Code, text editor, IDE, or command line to edit lines 2 and 17 with the file names of your input file and output file.

2: If your head_tail.py is not in the same directory as input file, you will need to add additional code to search through directories to find the file. This simplifies it a bit :)

3: Either run in your IDE or using command line with:

 cd downloads
 py head_tail.py

I hope this code helps in your scientific endeavors, feel free to use and edit :)

About

python script to pull the first and last line of file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages