| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Spliiting a command line into two options |
Al salaam a'alaykum Sean 16 Aug 03 14:32, Sean Rima wrote to All: SR> Hello everybody. SR> I am trying to grab options from a command line basically which SR> looking like: SR> tcob1tes this is a test SR> I want $a to be tcob1tes and $b to be this is a test I'd read $ARGV[0] into $a, then set up a loop to read the rest of the $ARGV array, concatenate the bits with spaces, and shove it in $b... Regards, David --- Msged/LNX TE 06 (pre)* Origin: Blessed are the geek for they shall inherit the earth. (3:640/305) SEEN-BY: 633/267 270 @PATH: 640/305 954 774/605 123/500 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.