Add text content by field
A 3B 4C 5A 8D 2C 6
Add the same data as the fields in the above contentawk -F ‘ ‘ ‘{sum[$1]+=$2}END{for(i in sum){print i, sum[i]}}‘ test.txtResults:
A 11B 4C 11D 2
Stitching two text by
first, the development of Linux1.1969 years of birth at Bell Labs Unix, is open source free, and then gradually transformed into a toll system.In 2.1986, Tan Ning developed mini Unix, but it was mainly used for teaching.3. Stallman Create FSF(Free
1. Uninstall the git1.7.1 that comes with CentOS:Using git–version to view the version of the system, CentOS should have its own version of Git that is 1.7.1Terminal input:yum remove git2. Install the required packagesTerminal input:yum install curl-
What is an aliasIn the process of managing and maintaining a Linux system, a large number of commands will be used, and some long commands or usages are often used, and it is undesirable to repeatedly and frequently enter a very long command or
1, double-click2, run3, next4, agree, next5, change the path, put the place you want to put D:\Program files\vmware\vmware workstation\ Click Next6,7,8, installation9,10,One by one, go to the place where you can find vmware.exe double-click12,The
linux Server Initialization optimization Script----------------------------------------------------------------------------------------# !/bin/bash## writes by tian## ver 1.1.0 at 20180705# Close ctrl + alt + del (linux 6.x ) echo "Off
Regular expressions: Formal notation, regular notation (Regular expression) regular expressions are described using a single string, matching a series of strings that conform to a rule of a sentence.1) command format;grep "Regular" string file2)
1, check the JDK version of the system[Email protected] software]# java-versionShow:OPENJDK version "1.8.0_102" OPENJDK Runtime Environment (build 1.8.0_102-b14) openjdk 64-bit Server VM (build 25.102-b14, MI Xed mode)2. Detect JDK installation
BrieflyLinux is a set of free and open source Unix-like operating systems, born on October 5, 1991 (the first officially announced), by the Finnish students Linus Torvalds and later joined the many enthusiasts jointly developed.Linux is a POSIX and
There are 3 servers, the IP is 192.168.174.10,192.168.174.11,192.168.174.12, respectively.
Download the website and unzip the installation on each machine separately.# 创建kafka的安装目录mkdir -p /usr/local/software/kafka# 解压tar -xvf
1. SZ and RZSZ: Send selected files from local (send) to remote machineRZ: Run this command will pop up a file Selection window, select a folder from the local, receiving (receive) from the remote fileUse the installation under Mac brew :brew
Linux Unzip commandTar-C: Create compressed archives-X: Unzip-T: View content-r: Append files to the end of a compressed archive file-U: Update files in original compressed packageThese five are stand-alone commands, which use one of the compression
To add the catalina.sh under Tomcat's bin, position cygwin=false before. Note the quotation marks to be taken, red for the newly added. # OS specific support. $var _must_ is set to either True or false.java_opts=
#!/bin/bash#!/bin/bash#exact All log files#计算log文件个数log_number= ' ls *.log |grep log-c '#当log文件数大于0时遍历删除文件中的文件夹If [$log _number-gt 0];thenlist_log_files=$ (LS *.log)#Traverse to delete filesFor log_file in $list _log_filesDo#delete All log
1.xargs combined with find useWhen you delete too many files with RM, you may get an error message:/BIN/RM Argument list too long. Use Xargs to avoid this problem:Find. -type F-name "*.log"-print0 | xargs-0 rm-fThe xargs-0 is used as a
Usual usage: source filepath or. FilePathFunction: Enables the current shell to read into a shell file with a path of FilePath and executes all the statements in the file in turn, typically to re-execute the newly modified initialization file for
1. View Files===== Read R = 42, modify the contents of the file===== Write w = = 23. Permission to run commands/scripts===== Execute x = 1= 04, Linux permissions classification 9-bitMaster, family, strangers.rw-r--r---rw-r--r--. 2 root root 194 Oct 1
Linux Time Line
System V and BSD in the 80 's copyright dispute
1990 BSD transplant to X86 386 plan aborted
1991 Finnish Linus invented Linux
1994 Linux1.0 released for use in production environments
Operating systemOS =
Mainly through the following two commands:cat/etc/passwdCat/etc/groupStep One: CAT/ETC/PASSWD View all user information, details such as:Step 2:cat/etc/passwd|grep user name to find a user, details see:Step three: Cat/etc/group View all group
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