Skip to content
  • View menu
  • View sidebar

bioinfo core

Index & solution of bioInfo utilities

  • Home
  • All entries
  • Blogs
  • Contact
  • About

Categories

  • Between languages (7)
  • Blogs (8)
  • Python (35)
  • R (1)
  • Unix (37)

Tags

bedfile Blogs conda Excel html numpy Pandas Python R slurm Unix
05/15/202010/21/2021 by bioinfocore

Unix skip/remove the first or last line

  • Unix
  • Unix

Skip or remove the first line:

tail -n +2 file.txt

Skip the last line:

head -n -1 file.txt

Source:
https://unix.stackexchange.com/questions/55755/print-file-content-without-the-first-and-last-lines

Post navigation

← Previous Post Python run loops in parallel
Next Post → Unix insert a line to the beginning of a file
Copyright 2024 | by bioinfocore