I wonder if it is possible to modify the ls -l command by a custom column. For example, I would like this column to contain for each file, say, the first line of $(CustomCommand FILE).
How to extend the ls command by a custom column
ls;command
Here's a very basic proof of concept.  Not particularly robust (filenames with spaces will break it for example) but gets the idea across.$ export CustomCommand=file$ alias ls=/tmp/test/myls$ lsa  b  c  myls$ ls -l-rw-rw-r-- 1 steve steve   0 Sep 22 19:17 a a: empty-rw-rw-r-- 1 steve steve   0 Sep 22 19:17 b b: empty-rw-rw-r-- 1 steve steve   0 Sep 22 19:17 c c: empty-rwxr-xr-x 1 steve steve 127 Sep 22 19:18 myls myls: POSIX shell script,     ASCII text executable$ cat /tmp/test/myls#!/bin/shif [ $1 = -l ]then shift ls -l $* | awk 'NF>2{ printf %s ,$0 ; system($CustomCommand  $NF) }'else ls $*fi$