---
name: "filename"
section: "1"
platform: "linux"
package: "wcstools"
version: "3.9.7-1.1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/filename"
---

# filename(1)

AME

## NAME

filename - AME

## SYNOPSIS

**filename** \[*-v/*\] *path1 path2 path3* ...

## DESCRIPTION

FILENAME: Drop directory from pathname

\-/: Keep one more end directory for each /

**-e**: Append endline after each file name

**-n**: Prepend one more end directory with .

**-r**: Root of file name (before first .)

**-v**: Verbose

**-z**: Add null instead of nl to output for scripting
