if foobar is a program that can take any number of filenames as
arguments :
DOS>foobar file0
DOS>foobar file0 file1
then how do I prevent it thinking that the pipe is the file argument:
DOS>foobar file0 | foo
Here, how do I telf foobar, tthat | and foo are not its arguments
It's built into command.com or cmd.exe, it doesn't pass | or the
following command as arguments to the preceding command.
That is how it seems to work most of the time. But I have cygwin
tools, including sed, and look at this
C:\tmp>sed -n 's/"""//' foo.i | sort
sed: can't read |: No such file or directory
sed: can't read sort: No such file or directory
Unlike a Unix-type shell, the Windows command processor (command.com or
cmd.exe) doesn't give any special meaning to the single quote character
('). It is however interpretting the double quotes ("), and the third
double quote character in your command line is preventing the vertical
bar (|) from being interpretted as a pipe.
You should either use the Cygwin shell, which will intrepret the single
quotes the way you expect it do, or only use double quotes:
sed -n "s/\"\"\"//" foo.i | sort
Ross Ridge
--
l/ // Ross Ridge -- The Great HTMU
[oo][oo] rri...@csclub.uwaterloo.ca
-()-/()/ http://www.csclub.uwaterloo.ca/~rridge/
db //