Answers for "get n lines of file shell"

8

bash for each line of file

while read p; do
  echo "$p"
done <peptides.txt
Posted by: Guest on April-06-2020
2

bash print last n lines of file

# Basic syntax:
tail -n input_file
# Where n is the number of lines to load from the end of the input_file
Posted by: Guest on October-04-2020

Code answers related to "get n lines of file shell"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language