python хорош для этого:
# python
import os
os.system( 'ls -lR --time-style=full-iso /home/jw > ls_dump.txt')
folder = ''
for line in open('ls_dump.txt', 'r'):
inrec = line.split()
if inrec == []:
continue
if inrec[0].startswith('total'):
continue
if inrec[0].endswith(':'):
folder = inrec[0].replace(':','')
continue
outline = folder + '\t' + '\t'.join(inrec[0:8]) +'\t'+ ' '.join(inrec[8:])
print( outline )