Cross Compiling FileZilla 3 for Windows under Ubuntu or Debian GNU/Linux

From FileZilla Wiki
Revision as of 08:43, 7 May 2012 by 219.94.253.77 (talk) (Undo revision 8300 by Bugiii (talk))
Jump to navigationJump to search

sed、awk、tr 结合管道和重定向能够实现!以下是一个雏形,由于时间关系,匹配不很严格,有些地方需要改进! BASH#!/bin/bash sed 's/[^0-9.:]\+/\n/g' ip_list|grep ':80$' port80.txtsed -i 's/^://g' port80.txtsed -i 's/:80$//g' port80.txtawk -F . '{total=$1+$2+$3+$4; print total}' port80.txt tmpip.txt sed -i 's/\n/+/g' tmpip.txtcat tmpip.txt | tr '\n' '+' result.txtrm -f tmpip.txt port80.txtexit 0[]