In ubuntu, a few lines of the file are displayed. 1. the cat command is as follows: the command lines 200th to 240 in file_name are available in two ways: [plain] catfile_name | head-n240 | tail-n40catfile_name | tail-n + 200 | head-n4... in ubuntu, a few lines of the file are displayed. 1. the cat command is as follows: the command lines 200th to 240 in file_name are available in two ways: [plain] cat file_name | head-n 240 | tail-n 40 cat file_name | tail-n + 200 | head-n 40 Note: 1) head-n 240 indicates 0 to 240 rows; 2) tail-n 40 indicates that 40 rows at the end are displayed; 3) tail-n + 200: displays the content from row 200 to the end. 2. sed command [plain] sed-n'5, 10p 'file_name so that only 5th rows to 10th rows can be displayed.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service