Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Another Only 28 Files (Quick Fix?)

Status
Not open for further replies.

beaster

Technical User
Aug 20, 2001
225
US
This script below also will only produce only 27 files. I need it to be unlimited (Or at least 100)

BEGIN {
outputFileROOT="rxmop_input"
unknownNUM="999999";
}

FNR == 1 {
if (match(FILENAME, "[0-9]+"))
output=outputFileROOT substr(FILENAME, RSTART, RLENGTH);
else
output=outputFileROOT unknownNUM;
}

/(^RXOTX|^RXORX)/ { print >> output; }


I believe this is the last file that will have this issue. I have looked over everything I have.
 
BEGIN {
outputFileROOT="rxmop_input"
unknownNUM="999999";
}

FNR == 1 {
if (output) close(output)
if (match(FILENAME, "[0-9]+"))
output=outputFileROOT substr(FILENAME, RSTART, RLENGTH);
else
output=outputFileROOT unknownNUM;
}

/(^RXOTX|^RXORX)/ { print >> output; }
CaKiwi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top