In most command-line instances it is an escape character. -- ME2
On Wed, Jun 10, 2009 at 3:40 PM, Joseph L. Casale <[email protected] > wrote: > So a carat is a windows escape char in a shell? > Or is this something specific to a pipe? > > > > Thanks! > jlc > > > > *From:* mikeMitchell [mailto:[email protected]] > *Sent:* Wednesday, June 10, 2009 1:00 PM > *To:* NT System Admin Issues > *Subject:* RE: More batch help > > > > for /f %%a in ('vshadow -q ^| grep "SNAPSHOT ID" ^| cut -f 5 -d " " ') do > echo %%a > > > > Pipes in the inside bit need to be escaped with hat... ^| > > The command line within the parens should be surrounded by single quote. > > > > *From:* Joseph L. Casale [mailto:[email protected]] > *Sent:* Wednesday, June 10, 2009 9:15 am > *To:* NT System Admin Issues > *Subject:* More batch help > > > > Hey Guys, > What’s the trick for getting a long command executed in a for loop: > > > > FOR /F %%a IN (vshadow -q | grep "SNAPSHOT ID" | cut -f 5 -d " ") DO ( > > echo %%a > > ) > > > > As an example? > > Thanks! > jlc > > > > > > > > > > > > > > ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
