Tuesday, March 4, 2003 @ 1:44:10 PM Central Standard Time JJT> bash myscript.sh JJT> and append the output to file "config1" with: JJT> bash myscript.sh >> config EE> perl -e 'for($i = 28800; $i < 29101; $i++) { print EE> "tcp,0.0.0.0/0,$i,192.168.100,$i\n";} >> name_of_file_to_append_to JB> Here you go: JB> #!/bin/bash JB> declare FILE="/home/jburns/config1" JB> function write { JB> echo $* >> $FILE JB> } JB> declare BEGINPORT=28800 JB> declare ENDPORT=29100 JB> while [ "$BEGINPORT" -lt $(($ENDPORT+1)) ] JB> do JB> write "tcp,0.0.0.0/0,$BEGINPORT,192.168.1.100,$BEGINPORT,on" JB> BEGINPORT=$(($BEGINPORT+1)) JB> done I wanted to thank you all for helping me with my script drama. I ended up leaving the script as is and just bash ./scripter >> config worked awesome. Take Care & Rock'On, Robert (aka B_o_B) David Felix De Mars West Longitude 90' 15' 43" mailto:chewbaka at toughguy.net _______________________________________________ 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