---
name: "__numset"
section: "8"
platform: "linux"
package: "afbackup"
version: "3.5.3-3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/__numset"
---

# \_\_numset(8)

deals with number-sets This program is part of afbackup

## NAME

**\_\_numset - deals with number-sets**\
 **This program is part of afbackup**

## SYNOPSIS

**\_\_numset \<set-1-specifier\> { + \| - \| in} \<set-2-specifier\>**

## DESCRIPTION

**This Program deals with set of numbers and can either remove elements of one set that exists in another set, or merge two sets.**

**If the second argument is a +, then the two sets are merged.**  **If the second argument is -, the elements in set2 are removed from set1.**

**If the second argument is the word "in", then it is tested, whether elements of set 1 are also contained in set 2.**

**The number of common elements will be the result in that case.**

**If the first argument is the character # (must be escaped in shell scripts, e.g. write '#'), the result is the number of elements in the set given as second argument.**  **Number set specifiers should not contain whitespace and may consist of numbers, commas and dashes.**

## EXAMPLES

- **Examples how to use \_\_numset and the results:**

  **prompt# \_\_numset 1-3,5-9,14 + 10-12**

-

  **The output will be:**

-

  **1-3,5-12,14**

**prompt# \_\_numset 1-3,5-9,14 - 5-13**

-

  **The output will be:**

-

  **1-3,14**

**prompt# \_\_numset 3 - ""**

-

  **The output will be:**

-

  **3**

- **In this cases, it gives no output**

  **prompt# \_\_numset "" - 4,6,8**

  **prompt# \_\_numset 3 - 3-5**

  **prompt# \_\_numset # 4-9**

## SEE ALSO

**[afclient(8)](/afclient/8.md), [xafclientconfig(8)](/xafclientconfig/8.md), [full\_backup(8)](/full_backup/8.md), [incr\_backup(8)](/incr_backup/8.md), [afverify(8)](/afverify/8.md), [afrestore(8)](/afrestore/8.md), [xafrestore(8)](/xafrestore/8.md), [afserver(8)](/afserver/8.md), [afmserver(8)](/afmserver/8.md), [copy\_tape(8)](/copy_tape/8.md), [afclient.conf(8)](/afclient.conf/8.md),** **[update\_indexes(8)](/update_indexes/8.md)**

## AUTHOR

**This manual page was written by Rene Mayorga \<rmayorga@debian.org.sv\> for**  **the Debian system (but may be used by others).  Permission is**  **granted to copy, distribute and/or modify this document under**  **the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation.**

**On Debian systems, the complete text of the GNU General Public**  **License can be found in /usr/share/common-licenses/GPL.**
