| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Spliiting a command line |
-=> Jame Clay wrote to Sean Rima <=- JC> Hi Sean! JC> >>>> I want $a to be tcob1tes and $b to be this is a test JC> >>> 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... JC> >> I did that in the end, works a treat. JC> JC> And, of course, if you want more control over the command line JC> parameters to a you could use getopts (Stn or Long)... JC> That was my first port opf call but I cannot use " from the script that I was using as it requires the " for the start and end of the commandline to call. Sean ... Oh Lord it is so hard to be humble, when you are perfect in every way --- blueMail/Win32 1.1 --- SBBSecho 2.00-Win32* Origin: There Can Only Be 1 http://www.tcob1.net (2:263/950) SEEN-BY: 633/267 270 @PATH: 261/38 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™.