TAB in echo -pleas help.

March 17, 2010 at 01:32:45
Specs: Windows XP
Hi everyone!

I have a problem. I need to write echo with
<TAB>. I wrote a script to reedit
hosts config in windows but I dont know how
to write in this file value TAB.

fe.

echo %ip% %host% >>
c:\WINDOWS\system32\drivers\etc\hosts

when i execute script i have efect like this

209.191.93.53 (space) yahoo.com

i need somethink like this
<TAB> 209.191.93.53 <TAB> yahoo.com

it's only a part of script and i can't use to change all spaces for TAB- only in label to write ip and hostname in hosts file


See More: TAB in echo -pleas help.

Report •


#1
March 17, 2010 at 02:32:14
When I do this:

>> testtab echo num	name


I get a tab between num and name.

I can't tell if your command has a tab because it may have been lost in this forum.


=====================================
Helping others achieve escape felicity

M2


Report •

#2
March 17, 2010 at 09:25:49
The hosts file does not need TABs, spaces will do just fine

Another message from the front against the use of tabs, anywhere.


Report •

#3
March 17, 2010 at 09:27:52
> I can't tell if your command has a tab because it
> may have been lost in this forum.
>

Well, tabs is one thing, but also whitespaces get lost here ... but usually, not in a bad way. Leading whitespaces are almost always for indication only, and reduction of multi-spaces to one space, is also not a problem for the hosts-file (it has an intelligent format, being that it allowes a lot of formats)


Report •
Related Solutions


Ask Question