awk

root@vic2cc:~/vim_practice# awk 'NR==FNR{a[NR]=$0} NR!=FNR{print a[FNR],$0}' acc res     
001 wx nt1
002 wx ne2
003 wx ne3
root@vic2cc:~/vim_practice# awk '{a[NR]=$0} NR!=FNR{print a[FNR],$0}' acc res        
001 wx nt1
002 wx ne2
003 wx ne3
root@vic2cc:~/vim_practice# awk 'FILENAME=="acc"{a[NR]=$0}FILENAME=="res"{print a[FNR],$0}' acc res
001 wx nt1
002 wx ne2
003 wx ne3
root@vic2cc:~/vim_practice#

some op record

iptables must have the double channel for communication


salt

pip install psutil -i http://apt.2980.com/pypi/simple –trusted-host apt.2980.com

salt-run jobs.active

salt '10.17.65.229' cmd.run "python /tmp/test.py" –async

salt "10.17.65.229" saltutil.kill_job 20171127165031008707

sudo salt '*' grains.item saltpath username os

saltutil.sync_modules refresh

sudo salt-run jobs.list_job 'jobid'

kill salt progress and restsart in front

launchctl unload /Library/LaunchDaemons/com.saltstack.salt.minion.plist

salt-minion

maybe the salt should run in front while meeting some error

rsync pay attention the rsync.pas auth 644

check last update node info by salt in 86 cdn manager:

sudo salt -N cdn_node_all cmd.run "grep -o '/raid/wwwroot/Q7/win/enginepatch' /opt/cdnsynctool/CDNSyncTool/common/ComDef.py"


check salt start user auth, and launchctl unload and restart

powershell about

svn st | select-string -pattern "^C"

svn revert -R .\image

About Windows

msys2: 

MSYS2 is a software distro and building platform for Windows.
At its core is an independent rewrite of MSYS, 
based on modern Cygwin (POSIX compatibility layer) and 
MinGW-w64 with the aim of better interoperability with native Windows software. 
It provides a bash shell, Autotools, 
revision control systems and the like for building native Windows applications 
using MinGW-w64 toolchains.
It features a package management system to 
provide easy installation of packages, Pacman. 
It brings many powerful features such as dependency resolution 
and simple complete system upgrades, as well as straight-forward package building.

Reference from: MSYS2 installer

This is the download link in TUNA: Index of /msys2/distrib/x86_64/