I built the short code below and if I run if I run it under “bash” I can
generate a list of command that after I can copy and past, and
run under the same “bash” session. If I try remove the “echo”
I get errors. As the list of HEXID is so long (about 3.000)
I need to run the code below in parts, and do a lot of copy-and-past
to reach up the desidere result.
My question is if I can generate and text file to run all HEXIDs on one
session. I tryed change “echo…” by “cat … > c:/grass/scripts/myscript.txt”
but the file get some stranger simbols and I am not sure if
grass will understand it.
I run native wingrass 6.3.0, not under MSYS or linux.
I built the short code below and if I run if I run it under "bash" I can
generate a list of command that after I can copy and past, and
run under the same "bash" session. If I try remove the "echo"
I get errors. As the list of HEXID is so long (about 3.000)
I need to run the code below in parts, and do a lot of copy-and-past
to reach up the desidere result.
My question is if I can generate and text file to run all HEXIDs on one
session. I tryed change "echo.." by "cat ...
>
c:/grass/scripts/myscript.txt"
but the file get some stranger simbols and I am not sure if
grass will understand it.
I run native wingrass 6.3.0, not under MSYS or linux.
">>" appends to the file, ">" overwrites the file each time
suggestion 2:
perhaps put the ">" after the done, not after each echo? Perhaps that
needs the entire for...done loop inside parentheses:
( for ... done ) > outfile.txt
?