---
name: "tagcount"
section: "1"
platform: "linux"
package: "tag-types"
version: "0.0.9-4"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/tagcount"
---

# tagcount(1)

count things in a tag file

## NAME

tagcount - count things in a tag file

## SYNOPSIS

**tagcount** **\[-h\]** **\[-r\]** **\[-f fieldname\]** **\[-x\]** **\[-v fieldname value\]** **\[-a\]** **\[tagfile\]** **\[outputfile\]**

## DESCRIPTION

tagcount counts the number of records, or fields in a tag file.

## OPTIONS

- **-h**

  Disables normal header processing. If this is not present then the first record is assumed to be a header, and will not be output

- **-r**

  Count records

- **-f fieldname**

  How often does the given field occur

- **-x**

  Modifier for -f, how often does the field NOT occur

- **-v fieldname value**

  How often does the field occur with a given value

- **-a**

  All - show all the fields which occur in the file, together with how often they occur.

If more than one modifier is specified then the results are output in the order\
  number of records\
  number of fields\
  field display

## SEE ALSO

[tagprogs(1)](/tagprogs/1.md), [tag(5)](/tag/5.md)

## AUTHOR

John Lines (john@paladin.demon.co.uk)

## BUGS

The -f flag can only be specified once (or more accurately only the last occurance is used)

\-x and -a are not yet implemented
