[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#22128: dirname enhancement
From: |
Nellis, Kenneth |
Subject: |
bug#22128: dirname enhancement |
Date: |
Wed, 9 Dec 2015 17:31:23 +0000 |
I frequently need to extract the `dirname's from a list of files,
so dirname should have an option to take its input from a
file, e.g.:
dirname -f <filename>
where <filename> could be "-" for stdin.
E.g., to get a list of directories that contain a specific
file:
find -name "xyz.dat" | dirname -f -
The same would be good for `basename' as well.
--Ken Nellis
- bug#22128: dirname enhancement,
Nellis, Kenneth <=
- bug#22128: dirname enhancement, Pádraig Brady, 2015/12/09
- bug#22128: dirname enhancement, Bob Proulx, 2015/12/10
- bug#22128: dirname enhancement, Nellis, Kenneth, 2015/12/10
- bug#22128: dirname enhancement, Bob Proulx, 2015/12/10
- bug#22128: dirname enhancement, Nellis, Kenneth, 2015/12/10
- bug#22128: dirname enhancement, Stephane Chazelas, 2015/12/11
- bug#22128: dirname enhancement, Pádraig Brady, 2015/12/11
- bug#22128: dirname enhancement, Stephane Chazelas, 2015/12/11