Skip to content

Commit

Permalink
cut is not needed.
Browse files Browse the repository at this point in the history
closes #1

Also, no need to keep old less concise solutions.
  • Loading branch information
danstoner committed May 10, 2017
1 parent 2dac877 commit 713b098
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions fc-list-examples.md
Expand Up @@ -38,7 +38,7 @@ Century Schoolbook L

The following variation uses the --format (-f) option and produces output similar to the above example:
```
$ fc-list --format="%{family}\n" | cut -f1 -d, | sort | uniq
$ fc-list --format="%{family}\n" | sort | uniq
Accanthis ADF Std
Accanthis ADF Std No2
Accanthis ADF Std No3
Expand All @@ -52,19 +52,3 @@ Century Schoolbook L
<snip>
```

My original solution used multiple cuts and awk before I dug into the fc-list command-line options:

```
$ fc-list | cut -d: -f2 | cut -d, -f1 | awk '{$2=$2; print}' | sort | uniq
Accanthis ADF Std
Accanthis ADF Std No2
Accanthis ADF Std No3
Andale Mono
Arial
Arial Black
Asana Math
Bitstream Charter
Cabin
Century Schoolbook L
<snip>
```

0 comments on commit 713b098

Please sign in to comment.