Project

General

Profile

Actions

Bug #2385

closed

cut: "-" doesn't work for standard input

Added by Anonymous over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Target version:
-
Start date:
06/07/2012
Due date:
% Done:

0%

Estimated time:

Description

The man page for cut states that you can supply a - in place of the filename to read from standard input, but it doesn't work:

echo foo bar | cut -w -f 1 -

cut: -: No such file or directory

However, this does:

echo foo bar | cut -w -f 1

foo

Actions

Also available in: Atom PDF