例如包含userId的
awk -F '\t' '{for(i=1; i<=NF; i++){if ($i ~ /.*user_id.*/){print $i}}}'
[......]
打印log中某一列
Leave a reply
例如包含userId的
awk -F '\t' '{for(i=1; i<=NF; i++){if ($i ~ /.*user_id.*/){print $i}}}'
[......]
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[......]