- May
- 13,813
- 211
I have strings like these (with the leading spaces) in the clipboard.
This works.
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.
Any idea what's going on? ... and how to work around it?
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: |: Invalid argument
D:\gnu\cut.EXE: grep: No such file or directory
D:\gnu\cut.EXE: .: Permission denied
Any idea what's going on? ... and how to work around it?