On 11/29/2017 06:56 AM, Pádraig Brady wrote:
+get_mode() { ls -ld "$1" | cut -b-10; }
Thanks. BTW we often emphasize that the output of ls(1) is merely intended for the users' eyes rather than for being processed by a script. Consequently, shouldn't we change this to using stat(1) instead? Have a nice day, Berny
