1.

Solve : Batch with greater than sign?

Answer»

OK so I need to create a line of text in a new or existing file with a GREATER than sign

what I tried was

echo 1st line of text >newfile.txt
echo 2nd line of text >>newfile.txt
echo 3rd line with a greater than sign > >>newfile.txt
echo 4th line of text >>newfile.txt

the resulting text file will show

1st line of text
2nd line of text

and that's it

any suggestions

If you want something to be treated as plain text, use a ^ (caret).
The following should work:


Code: [Select]echo 1st line of text >newfile.txt
echo 2nd line of text >>newfile.txt
echo 3rd line with a greater than sign ^> >>newfile.txt
echo 4th line of text >>newfile.txt
exit
Some confusion here

This is a carrot This is a caret ^excellent that worked great

its amazing how one little carrot solves all my issues with this batchDias posted over Innerchaos Dias, do you have some powers we should know about? Can you move THINGS without touching them? Do you hear PEOPLE when they don't say anything?


lol my cousin Melvin has an "Apple" key AND a carrot key. I lied and said I had a grape key.Quote from: Helpmeh on March 29, 2009, 04:39:40 PM

Dias, do you have some powers we should know about?

Beware my powers....



Quote from: Dias de verano on March 30, 2009, 12:18:21 AM
Beware my powers....





Please...Please don't hurt me! You can have my watch, but just leave us alone!I have a wife and kids- eat them, mr.bear.

oh- we aren't talking about a bear. Off topicness!
The Thread!
Presented and produced by - Helpmeh
Co-Producer - Dias De Verano
Star of the thread - BCprogrammer


"Please enjoy this thread"
------------------------------------
Remember:
|
"Ignorance is Bliss"the thread concluded with the original poster's concluding statement:

Quote from: Innerchaos on March 20, 2009, 02:12:14 PM
excellent that worked great

its amazing how one little carrot solves all my issues with this batch

After that the TOPIC is either forgotten or off-topic banter ensues. this is an example of the SECOND case.Quote from: BatchFileCommand on March 30, 2009, 06:18:09 PM
Off topicness!
The Thread!
Presented and produced by - Helpmeh
Co-Producer - Dias De Verano
Star of the thread - BCprogrammer


"Please enjoy this thread"
------------------------------------
Remember:
|
"Ignorance is Bliss"

Lol...


Discussion

No Comment Found