Skip to main content

syms

syms lists symbols in its input (where "symbol" can be defined flexibly enough to be words, identifiers or XML tags).

syms is distributed under the terms of the GNU General Public License; either version 3 of the License, or (at your option), any later version. See the file COPYING for more details.

Usage examples

Unique symbols, sorted lexically: syms "$@" | sort | uniq
Number of unique symbols: syms "$@" | sort | uniq | wc -l
Unique symbols, sorted by frequency: syms "$@" | sort | uniq -c | sort -n -k 2
Unique lines (like uniq, but not just adjacent lines): syms -s "^(.*)$" "$@"

usage: syms [-h] [-s REGEXP] [-V] [FILE ...]

List symbols in input.

positional arguments:
  FILE

options:
  -h, --help            show this help message and exit
  -s REGEXP, --symbol REGEXP
                        symbols are given by REGEXP
  -V, --version         show program's version number and exit

The default symbol type is words (-s "\p{L}+"); other useful settings
include:

  non-white-space characters: -s "\S+"
  alphanumerics and underscores: -s "\w+"
  XML tags: -s "<([a-zA-Z_:][a-zA-Z_:.0-9-]*)[\s>]"

Metadata

Release files for syms 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for syms 1.0.2
File Size Uploaded
syms-1.0.2.tar.gz 14.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for syms 1.0.2
File Interpreter ABI Platform
syms-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 29.2 kB

Release files / syms-1.0.2.tar.gz

Download URL syms-1.0.2.tar.gz
Size 14.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f1f58361b8db1ae9aec36658c79863d3f566aea813551f73a730927b94973ae5
BLAKE2b-256 checksum
How to use checksums
01c9ab9e5beb0092721d1804793b7fabe00d102eb3c6472ba8471381a853eb05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.4

Release files / syms-1.0.2-py3-none-any.whl

Download URL syms-1.0.2-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
152f5bc7b73cf06480c4542394434e0c3d0e7dd45506929054fe20beeac07a1c
BLAKE2b-256 checksum
How to use checksums
f63934b2897deff54a8124b2b3f5b57f84613f59750d52a3c032a60c9705c6a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.4

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page