-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* uniq: one input file * Standards document explains uniq has two optional file arguments, input and output * GNU and BSD versions follow this; do the same and stop treating subsequent file arguments as extra input files * test1: printf "a\na\nb\nc\nc\n" | perl uniq ---> implicit stdin and stdout * test2: perl uniq a.c ---> read a.c, write to stdout * test3: perl uniq a.c b.c ---> read a.b, write to b.c * test4: perl uniq A B C ---> invalid, too many args * wrong varname in error message
- Loading branch information
Showing
1 changed file
with
45 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters