home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 42,208 of 42,547   
   Kenny McCormack to muhammadusman319320@gmail.com   
   Re: The angle bracket in an echo command   
   14 Jun 23 19:25:27   
   
   XPost: comp.unix.shell   
   From: gazelle@shell.xmission.com   
      
   In article <51d52d53-aacf-40da-8de2-8f26e79783cen@googlegroups.com>,   
   Muhammad Usman   wrote:   
   >On Saturday, 13 May 2023 at 13:36:03 UTC+5, Kerr-Mudd, John wrote:   
   >> On Fri, 12 May 2023 23:53:16 -0700 (PDT)   
   >> Muhammad Usman  wrote:   
   >>   
   >> > I got the solution just after 26 years. Use single quotes such as   
   >> ... and changing OS.   
   >> > echo -e ''   
   >> > will solve the issue.   
   >> >   
   >> > If we use double quotes, it will surely raise an error.   
   >> > echo -e ""   
   >> > ```bash: !DOCTYPE: event not found```   
   ...   
      
   >I was doing it on bash shell linux. Never tried it on DOS or windows   
      
   Then you posted to the wrong newsgroup.   
      
   Anyway, believe it or not, it is not the angle brackets that are giving you   
   grief (see below - *); rather, it is the exclamation point (!).  You need to   
   read up on the topic of "history substitution" in "man bash".   
      
   (*) Basically, either single or double quotes will protect angle brackets,   
   but you need single quotes to protect "!".   
      
   --   
   Faith doesn't give you the answers; it just stops you from asking the   
   questions.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca