Line continuation

Jennifer Adams jma at COLA.IGES.ORG
Tue Aug 9 14:22:48 EDT 2005


Matt, try this and see if it works:

cmd='set fgvals '
cmd=cmd%'15 16 29 16 43 17 57 17 71 18 85 18 99 19 113 20 127 20 '
cmd=cmd%'141 21 155 21 169 22 183 22 197 23 211 24 225 24 239 25 '
cmd=cmd%'253 25 267 26 281 26 295 27 309 28 323 28 337 29 351 29 '
cmd=cmd%'365 30 379 30 393 31 407 32 421 32 435 33 463 33 477 34 '
cmd=cmd%'491 34 505 35 519 36 533 36 547 37 561 37 575 38 589 38 '
cmd=cmd%'603 39 617 40 631 40 645 41 687 41 701 42 715 42 729 43 '
cmd=cmd%'743 44 757 44 771 45 785 45 799 46 813 46 827 47 841 48 '
cmd=cmd%'855 48 911 49 925 49 939 50 953 50 967 51 981 52 995 52 '
cmd=cmd%'1009 53 1023 53 1037 54 1051 55 1065 55 1135 56 1149 56 '
cmd=cmd%'1163 57 1177 57 1191 58 1205 59 1219 59 1233 60 1247 60'
cmd=cmd%'1261 61 1275 61 1359 62 1373 63 1387 63 1401 64 1415 64 '
cmd=cmd%'1429 65 1443 65 1457 66 1471 67 1485 67 1583 68 1597 68 '
cmd=cmd%'1611 69 1625 69 1639 70 1653 71 1667 71 1681 72 1695 72 '
cmd=cmd%'1807 73 1821 73 1835 74 1849 75 1863 75 1877 76 1891 76 '
cmd=cmd%'1905 77 2031 77 2045 78 2059 79 2073 79 2087 80 2101 80 '
cmd=cmd%'2115 81 2255 81 2269 82 2283 83 2297 83 2311 84 2325 84 '
cmd=cmd%'2479 85 2493 85 2507 86 2521 87 2535 87 2703 88 2717 88 '
cmd=cmd%'2731 89 2745 89 2927 90 2941 91 2955 91 3151 92 3165 92 3375
93'
cmd


--Jennifer

On Aug 9, 2005, at 1:53 AM, Mr Norman wrote:

> I tried \, it doesn't seem to work. The code below won't look as it
> actually is because of the whole e-mail thing. The only place where
> there's actually a new line in the code is after a '\' character:
>
> set fgvals 15 16 29 16 43 17 57 17 71 18 85 18 99 19 113 20 127 20 141
> 21
> 155 21 169 22 183 22 197 23 211 24 225 24 239 25 253 25 267 26 281 26 \
> 295 27 309 28 323 28 337 29 351 29 365 30 379 30 393 31 407 32 421 32
> 435
> 33 463 33 477 34 491 34 505 35 519 36 533 36 547 37 561 37 575 38 \
> 589 38 603 39 617 40 631 40 645 41 687 41 701 42 715 42 729 43 743 44
> 757
> 44 771 45 785 45 799 46 813 46 827 47 841 48 855 48 911 49 925 49 \
> 939 50 953 50 967 51 981 52 995 52 1009 53 1023 53 1037 54 1051 55
> 1065 55
> 1135 56 1149 56 1163 57 1177 57 1191 58 1205 59 1219 59 1233 60 1247 60
> 1261 61 \
> 1275 61 1359 62 1373 63 1387 63 1401 64 1415 64 1429 65 1443 65 1457 66
> 1471 67 1485 67 1583 68 1597 68 1611 69 1625 69 1639 70 1653 71 1667 71
> 1681 72 1695 72 \
> 1807 73 1821 73 1835 74 1849 75 1863 75 1877 76 1891 76 1905 77 2031 77
> 2045 78 2059 79 2073 79 2087 80 2101 80 2115 81 2255 81 2269 82 2283 83
> 2297 83 2311 84 \
> 2325 84 2479 85 2493 85 2507 86 2521 87 2535 87 2703 88 2717 88 2731 89
> 2745 89 2927 90 2941 91 2955 91 3151 92 3165 92 3375 93
>
> I tried the set fgvals in one continuous line, but it failed at a
> certain
> point and gave an error (I assume because the line was too long). Any
> help?
>
>> If you just want to escape a newline in a text file,
>>
>> This is \
>> a single line
>>
>>> Hey, this feels like a dumb question, but I cannot find it in the
>>> archives, and it would be useful. Is there a way to wrap a line in
>>> grads
>>> like the '&' in Fortran? Thanks.
>>>
>>> -Matt
>>>
>>>
>>
>
>



More information about the gradsusr mailing list