In many Linux commands, the cut command can be used to intercept file information and intercept Linux strings. The following is a detailed introduction to the usage of the cut command. Interested friends can learn. under.
The cut command has an interception meaning, which can read content from a linux file or standard input and intercept a text interception tool of the required information column vertically. Cut can help us cut out the required information items, let us analyze the data in the server, simplify the data when the system is eliminated, reduce the work cost and improve the work efficiency! In addition to cut, there are also awk, sed, sort commands can also do interception.
Use of cut format:
cut OPTION option + [FILE] Text or information to be exported
Commonly used options are:
- d: Indicates what is used as a separator to cut. The default is a space.
-f: Which items to select for output, such as: f1 indicates the first item cut,
is as follows Figure; before /etc /passwd 10-user information
If you want to extract information the user name and the user's home directory, you can pass head /etc /passwd |
cut -d: -f1,6
-d: expressed in a colon delimiter, -f1,6 indicating the selection column 1 and column 6 outputs
rear partition
The above The use of the cut command in Linux is introduced. Using the cut command to intercept a string can reduce the workload and improve the work efficiency. Of course, you can also use other commands such as the sed command, the effect is the same.
Linux libgdiplus is a Mone library that can be used to display the color of web pages. However, many
In the Linux system, the etc/profile file cant be changed. To change the etc/profile file, you need
The fork() function is a fork function. An existing process can call the fork() fun
Node.js provides a rich JavaScript library for various Linux modules, which simplifies the use of No
Linux installation of PCNS software
Linux how to install and configure Cgroup
Linux system Vsftp 553 Could Not Create File error?
Ubuntu defragmentation command summary
Linux system settings ssh connection interrupt time skills
Ubuntu 12.04 via XRDP Remote Desktop Method
Linux system svn operation example
Steps to install arping on Fedora 18
How to install the openssh service on openSUSE
How to solve the problem that the VPN client connection to the Linux server is slow to slow down
Linux software raid operation guide
What should I do if the device id of the Linux virtual machine does not match the drive letter?
Win10 Mobile Preview 10549 Known Issues and Resolutions Summary
Win7 system msvcp100.dll storage location
How to update SP1 online in Chinese version of Windows Vista
Win10 program to quickly create two ways of desktop shortcuts
Win10 system interface returns to traditional style method
Win7 hang up download power saving solution
How to delete the local file browsing record under Win8
How to use win10 night mode? Windows10 open night mode tutorial