Skip to content
Advertisement

Tag: dirname

How to extract the directory from full file path

I have the following script which prints various file stats, which was kindly supplied by another user (choroba) (link). Is there a way that this can be amended to report just the directory name of each file and not the full file path with the file name? I have tried changing filepath with dirname and I get a series of

Advertisement