ITeye博客

shell

共 3 篇文章

shell脚本 替换widows中的不合法字符

##替换01.sh 02.sh俩个文件中不合法字符 for i in *.sh ; do sed -i 's/\r//g' $i; done

2014-03-11 09:50 · shell

win传文件到linux脚本

//upload.bat @echo off if [%1]==[] goto usage "c:\Documents and Settings\user\桌面\yaoyao\putty\PSCP.EXE" -load 10.10.250.23 -l root -pw 666666 %* 10.1.250.3:/srv/upload/apps/ goto end :usage echo Usage: deploay [WAR FILE NAME ] pause :end

2014-02-21 11:16 · shell

Socket挡板脚本

说明: 监听8888端口,当收到socket报文时向9999端口发送baowen.xml文件中的报文 //dangban.sh #!/bin/bash trap "exit" INT while true; do netcat -lp 8888 ; netcat localhost 9999 <baowen.xml ; done;

2014-02-21 10:44 · shell