Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # First 2 lines of file
- head -n 2 <file>
- # Last 2 lines of file
- tail -n 2 <file>
- # File w/o first 2 lines
- tail -n +3 <file>
- # File w/o last 2 lines
- head -n -2 <file>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement