[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cut using -d """ -- can't pipe output. (textutils 2.1 under Win32.)
From: |
Mike Paulsen |
Subject: |
cut using -d """ -- can't pipe output. (textutils 2.1 under Win32.) |
Date: |
Tue, 11 Jan 2005 02:27:25 -0600 |
User-agent: |
Mozilla Thunderbird 1.0RC1 (Windows/20041201) |
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.txt
2.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 with2
>cat temp.txt | cut -f2 -d """ | grep 1
cut: |: Invalid argument
cut: grep: No such file or directory
cut: 1: No such file or directory
>cat temp.txt | cut -f2 -d """ > temp2.txt
cut: >: Invalid argument
Cut doesn't have a problem with " " in place of """:
>cat temp.txt | cut -f1-10 -d " " | grep blah
2.0.0.127.blah blah blah "This is the text I want to
2.0.0.127.blah blah blah "This is the text I want to
>cut --version
cut (textutils) 2.1
Written by David Ihnat, David MacKenzie, and Jim Meyering.
Copyright (C) 2002 Free Software Foundation, Inc.
Any insights appreciated.
- cut using -d """ -- can't pipe output. (textutils 2.1 under Win32.),
Mike Paulsen <=