On Sun, Mar 02, 2003 at 03:25:02AM -0600, B_o_B wrote:
[snip]
> the 0.0.0.0/0,1214 is any incoming tcp on port 1214
> the 192.168.1.100,1214 is my box behind the wall
> #(if I have offending anyone by these past few lines, I will make
> #sure I am slacked for the offense to your superior intellect.)
> 

I think you have enough slack already, "Bob".  HAIL ERIS!

> Is there a way I can make a script that would add each line
> to the config file for all the ports from 28800-29100
> tcp,0.0.0.0/0,28800,192.168.1.100,28800
> add line by line through to
> tcp,0.0.0.0/0,29100,192.168.1.100,29100
> 

One possible solution (untested):

perl -le 'print"tcp,0.0.0.0/0,$_,192.168.1.100,$_"for28800..29100"'>>config

Now you're on your way to becoming a mighty Perl h4x0r!

-- 
trammell at el-swifto.com  9EC7 BC6D E688 A184 9F58  FD4C 2C12 CC14 8ABA 36F5
Twin Cities Linux Users Group (TCLUG)      Minneapolis/St. Paul, Minnesota

_______________________________________________
Twin Cities Linux Users Group Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list