When you are operating in Linux, sometimes you need to check the contents of the specified line number of the file. This requires the use of commands. The following small series will introduce you to the command to view the specified line of files under Linux.
In the Linux system, to find the content containing a keyword from the file, you can pass cat filename |
Grep “xxx” and similar commands are implemented, but if you look at the contents of the specified line number in the file, you need the following command to achieve.
1, through the command cat filename |
The grep -n “” command prints out the starting and ending line numbers to look for.
2, using sed -n & lsquo; x, yp & rsquo; filename command to print out the contents between the starting and ending lines (including the starting and ending lines).
Linux command above to view the file specified line is introduced, you can easily use this command to find what you want to see, you learn it?
When doing Linux system operation, sometimes the compressed file is too large, it is inconvenient to
less than 1024 in Linux In Linux systems, in general, ports smaller than 1024 are not open to ordin
Many people want to know which shell is used in the Linux system of this machine, the following smal
In this era of self-timer, the photos are very inconvenient to process, sometimes need to be compres
How to install JITwatch in Linux system?
How to configure LILO file for Red Flag Linux system
Linux How to use userdel to delete users
How to create management users and groups under Linux
Krita software in the Linux system tutorial
What should I do when VMware installs Ubuntu and reports piix4_smbus?
HP notebook Debian compiler sound card driver method
Ubuntu/Mint can't add a solution for PPA source
The most complete collection of Linux system shortcuts
Getting Started with Linux Network Protocols
What if the Win7 system cannot create a restore point?
Teach you to use Win7 mouse tricks - small function big contribution
Flash Player plugin does not work properly in Win8.1. Solution
Let XP speed up the booting several tips
The difference between wire and reg in verilog HDL
Security hardening setup experience in LNMP PHP environment
When the SYS command is used, the
Windows system sid modification method
What if the win7 system camera icon is missing? Win7 system to retrieve the camera icon two ways