sort filename | uniq -c | sort -nr
[......]
Linux输出重复行及对应计数
Leave a reply
sort filename | uniq -c | sort -nr
[......]
首先要排序
#find lines only in file1
comm -23 file1 file2
#find lines only in file2
comm -13 file1 file2
#find lines common to both files
comm -12 file1 file2
[......]
1、Deployment和Pod
文件
apiVersion: apps/v1
kind: Deployment
metadata:
name: lmsia-abc-server-deployment
spec:
selector:
matchLabels:
app: lmsia-abc-server
replicas: 2
template:
metadata:
labels:
app: l[......]
sudo apt-get update && apt-get install -y apt-transport-https curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo cat <<EOF >/etc/apt/sources.list
deb http://apt.kubernetes.io/ kubernetes-x[......]
http://www.chengweiyang.cn/gitbook/index.html[......]