|
From: | John Lowe |
Subject: | Re: cut using -d """ -- can't pipe output. (textutils 2.1 under Win32.) |
Date: | Tue, 11 Jan 2005 09:55:45 +0000 |
User-agent: | Turnpike/6.04-M (<PaYoyzNHKbYcytlBMTjz9Vawpr>) |
Hello, I'm having problems with cut (textutils 2.1 under Win32.) http://unxutils.sourceforge.net/I am unable to pipe or redirect the output when I specify the delimiter as a double quote (-d """).cat temp.txt2.0.0.127.blah blah blah "This is the text I want to end up with1" 2.0.0.127.blah blah blah "This is the text I want to end up with2"cat temp.txt | cut -f2 -d """This is the text I want to end up with1 This is the text I want to end up with2cat temp.txt | cut -f2 -d """ | grep 1cut: |: Invalid argument cut: grep: No such file or directory cut: 1: No such file or directory
You seem to be having problems with the difference between quoting in Windows and Unix. """ seems to be being taken as " so the rest of the line is quoted.
I am not an expert, but I would try "\"" or "\042" or "\034" (I'm not sure whether the \digits would be taken as octal or decimal...). Someone who knows will be along in a moment.
[snip further examples] -- John Lowe jrnl@bytetype.co.uk
[Prev in Thread] | Current Thread | [Next in Thread] |