Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1689

Trouble piping

$
0
0
I have strings like these (with the leading spaces) in the clipboard.

Code:
            "purple": "#800080",
            "red": "#800000",
            "white": "#C0C0C0",
            "yellow": "#808000"

This works.

Code:
v:\> type clip: | cut -d "\"" -f4
#800080
#800000
#C0C0C0
#808000

But I can pipe no further. Judging by the error message, CUT.EXE is seeing the '|' and everything after it as part of it's command line.

Code:
v:\> type clip: | cut -d "\"" -f4 | grep .
D:\gnu\cut.EXE...

Read more

Viewing all articles
Browse latest Browse all 1689

Trending Articles