Cut a list down to its first or last few lines.
Runs entirely in your browser.
Keep Only the First or Last Lines
- Input
- Output
- Keep: From the: Ignore blank lines
About Truncate a List
The head and tail of a list, without a terminal. Keeping the first few lines is the usual case - trimming a sample out of a large paste - and keeping the last few is what you want for the end of a log.
Blank lines are ignored by default when counting, so a list with gaps in it still gives you the number of real entries you asked for.
Other Text and List Tools
Text
- Censor Words
- Extract Email Addresses
- Extract a Substring
- Find Hidden Characters
- Add Quotes to Text
- Repeat Text
- Truncate Text
- Reverse Text
- Rotate Text
- Randomize Case
- Text to Unicode
- Palindrome Checker
- Create a Palindrome
Lines and lists
- Join Lines
- Split Text
- Wrap Each Line
- Unwrap Lines
- Group Lines
- Find Most Common Lines
- Rotate Lines
- Sort Lines
- Remove Duplicate Lines