There is a folder consist of some different file types which most of them are font files. I use this simple command to export file names of Fonts folder to Output text file:
~/Fonts$ ls > ../Output
But I want suchlike command to export the name of all files with additional properties (Name, Style, Type, Size, Version, Copyright, Description and each attribute which displayed in font viewer) in front of file name with a proper column space like below:
File Name Name Style Type Size ,...
FreeSerif.ttf FreeSerif Medium TrueType font 1.5 MB
FreeMono.ttf FreeMono Medium TrueType font 343.3 kB
And what about Fonts directory with some subdirectory? How to show them like above plus a tree view?
Note: The Output is not important to be like above. I expect just a simple command which export file properties alongside file name.
awk
:ls -lah | awk '{print $5 $9}'
. This prints the 5th column (size) and the 9th column (file name). Modify it to fit your needs.