Perl 当前离线
中尉
jellyhk 当前离线
少校
@echo off setlocal EnableDelayedExpansion set n=0 for /f "delims=" %%a in (a.txt) do ( set /a n+=1 if !n! == 3 ( echo %%a >>b.txt for /f "delims=" %%b in (b.txt) do (echo %%b>>c.txt) ) else (echo %%a>>c.txt) ) 复制代码
TOP
sxw (^_^)当前离线
少尉
use strict; use warnings; open FH,"<","a.txt" or die; open B,"<","b.txt" or die; my @b=<B>; open OUT,">","c.txt" or die; while (<FH>) { print OUT @b if $_=~/^bathome$/; print OUT $_; }复制代码
评分人数