Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ppabc committed Aug 23, 2016
1 parent 23230cc commit 50ff372
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions node.js/node.js.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ nvm install v0.10.33
nvm install v4.4.4
npm install -g pm2
pm2 list


##修改环境变量方法
##vi /etc/profile
##export PATH=/root/.nvm/versions/node/v4.4.5/bin:/usr/local/jdk/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin
2 changes: 1 addition & 1 deletion proxy/ss5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tar zxvf ss5-3.8.9-8.tar.gz
cd ss5-3.8.9-8
./configure && make && make install

cat >/etc/opt/ss5/ss5.conf<<EOF
cat >/etc/opt/ss5/ss5.passwd<<EOF
test 123123
aaa 123123
bbb 123123
Expand Down
6 changes: 6 additions & 0 deletions shell/awk/awk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ awk -F ":" '{ for(i=1;i<=3;i++) printf("%s:",$i)}'
awk -F':' '{print $1 ":" $2 ":" $3; print $4}'
awk -F':' '{print $1 ":" $2 ":" $3; for(i=1;i<=3;i++)$i=""; print}'

##awk打印用户和密码
cat test.log |awk -F '[ ]+' '{print $1 " " $2}'

##排序显示重复项目
cat test.log |awk -F '[ ]+' '{print $1}'| sort | uniq -c | sort -nr

#awk -F '\t'来表示分隔符,比如
awk -F '\t' '{print $1}' file1.txt

Expand Down

0 comments on commit 50ff372

Please sign in to comment.