Uncategorized Print Only Last Line Bash / To look at the last few lines of a file, use the tail command. Let us review how to print file lines using address and patterns in this first part of sed tutorial.