MARK LEEDS
2006-May-15 02:00 UTC
[R] simple .bat question but i can't find out where to post. my apologies for posting a non R question
----- Original Message ----- From: MARK LEEDS To: r-help-request@stat.math.ethz.ch Sent: Sunday, May 14, 2006 9:49 PM Subject: simple .bat question but i can't find out where to post. my apologiesfor posting a non R question I have what I think is a simple .bat question but i can't figure out where to post it ( i spent 6 hours looking through tutorials on batch commands but i haven't had success . Here is my question if anyone wouldn't mind answering : previously, i was on linux and tickerFileToSimulate was a file that contained a line in the top say "japan". I had shell script in linux that had the following 2 lines in it. TICKER_FILE = 'cat tickerFileToSimulate' file = $TICKER_FILE in this way, the variable $file was set equal to japan. I CANNOT find how to do the equivalent in a .bat file on windows XP. if someone could give me a place to post or tell me how to do it, it would be really great and again i am sorry for posting this question. [[alternative HTML version deleted]]
Gabor Grothendieck
2006-May-15 03:45 UTC
[R] simple .bat question but i can't find out where to post. my apologies for posting a non R question
Put the following two lines in your batch file: for /f %%a in (myfile.txt) do set line=%%a & goto:nextline :nextlin The RESOURCES file in the batchfiles*.zip distribution in: http://cran.r-project.org/contrib/extra/batchfiles gives pointers to many batch file resources. On 5/14/06, MARK LEEDS <markleeds at verizon.net> wrote:> > ----- Original Message ----- > From: MARK LEEDS > To: r-help-request at stat.math.ethz.ch > Sent: Sunday, May 14, 2006 9:49 PM > Subject: simple .bat question but i can't find out where to post. my apologiesfor posting a non R question > > > I have what I think is a simple .bat question but i can't figure out where to post it ( i spent 6 hours looking through tutorials on batch commands but i haven't had success . > > Here is my question if anyone wouldn't mind answering : > > previously, i was on linux and tickerFileToSimulate was a file that contained a line in the top say "japan". > > I had shell script in linux that had the following 2 lines in it. > > TICKER_FILE = 'cat tickerFileToSimulate' > file = $TICKER_FILE > > in this way, the variable $file was set equal to japan. > > I CANNOT find how to do the equivalent in a .bat file on windows XP. > > if someone could give me a place to post or tell me how to do it, it would be really great and again i am sorry for posting this question. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >
Reasonably Related Threads
- Further png() question
- My Apologies for the large post
- Jamaica - My apologies for the second post.
- Repost: (apologies for HTML post) A question about multiple(?) out of order ReleaseObject
- Many apologies: last post: A question about multiple(?) out of order ReleaseObject