From 3dbdefe02ade8f7fc47d920bfbf1b49835d7be07 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Wed, 28 Oct 2015 12:04:52 +0100 Subject: add prefix stripping, generalize -s --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 37f953c..dc2c9ea 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Over ls: * `-Q`: don't shell quote file names. * `-d`: don't enter directories. * `-h`: print human readable size for `-l` (also `%s`). -* `-s`: don't print leading `./`. +* `-s`: strip directory prefix passed on command line. * `-x`: don't enter other filesystems. * `-U`: don't sort results. * `-o ORD`: sort according to the string `ORD`, see below. @@ -72,7 +72,8 @@ Over ls: * `%R`: device ID for special files (`stat.st_rdev`). * `%i`: inode number. * `%I`: one space character for every depth level. -* `%p`: full path (without `./` if `-s`). +* `%p`: full path (`%P` if `-s`). +* `%P`: full path without command line argument prefix. * `%l`: symlink target. * `%n`: number of hardlinks. * `%F`: file indicator type symbol (`*/=>@|`). -- cgit 1.4.1