diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2015-10-28 12:04:52 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2015-10-28 12:04:52 +0100 |
commit | 3dbdefe02ade8f7fc47d920bfbf1b49835d7be07 (patch) | |
tree | e15924ace4c3e2c0912b963700ac01c781b4d5a1 /README.md | |
parent | f71e7b878a79f0a76f678070a154a0b1b6208e68 (diff) | |
download | lr-3dbdefe02ade8f7fc47d920bfbf1b49835d7be07.tar.gz lr-3dbdefe02ade8f7fc47d920bfbf1b49835d7be07.tar.xz lr-3dbdefe02ade8f7fc47d920bfbf1b49835d7be07.zip |
add prefix stripping, generalize -s
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 5 |
1 files changed, 3 insertions, 2 deletions
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 (`*/=>@|`). |