---
name: "vnsort"
section: "1p"
platform: "linux"
package: "cstocs"
version: "1:0.178-3"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/vnsort"
---

# vnsort(1p)

## NAME

vnsort -- Vietnamese sort

## FORMAT

vnsort \[ `` `-c' ``**list** ⎪ `` `-f' ``**list** \[`` `-d' ``**regexp**\]\] \[files ...\]

## SYNOPSIS

```
        vnsort -c10-15,50-,25-45 < file
        vnsort -f3,5-6 < file
        vnsort -f3,5-6 -s: < file
```

## DESCRIPTION

`` `vnsort' `` is a utility that sorts input lines according to rules used in Vietnamese language with TCVN 5712:1993 encoding (VSCII-1). You can run it without any options, then it just uses whole lines for sorting. With the options, it's possible to specify parts of the lines to be used for comparison. \

- **list**

  A comma-separated list of integer field numbers or field ranges. The are indexed from 1 and if a range is open (eg. `` `5-' ``), it means all remaining fields from the starting number.\

- **-c**

  Stands for columns and the list that follows specifies byte ranges on the line. You will probably use this option to sort data with fixed width fields.\

- **-f**

  Fields that will be used for sort.\

- **-d**

  Delimiter that separates fields in the **-f** option. It is a Perl regular expression, the default is `` `[ \t]+' ``, which means any number of spaces or tabs in a row.\

- **-i**

  Treat lowercase letters as uppercase.

## SEE ALSO

*cssort*(1), *vntovn*(1).

## AUTHOR

Jan Pazdziora \<adelton@fi.muni.cz\> -- the original author of cssort. Han The Thanh \<thanh@fi.muni.cz\> -- support for Vietnamese.
