hi,
can someone help me with this one:
q)show x:system"find ~/q -exec ls -lda {} \; ";
“drwxrwxr-x 3 tb tb 4096 Apr 4 19:56 /home/tb/q”
“-rw-r–r-- 1 tb tb 821 Jan 21 11:17 /home/tb/q/sp.q”
“-rw-r–r-- 1 tb tb 228 Jan 21 11:17 /home/tb/q/q.q”
“-rw-r–r-- 1 tb tb 150 Jan 21 11:17 /home/tb/q/trade.q”
“-rw-r–r-- 1 tb tb 19402 Mar 24 18:29 /home/tb/q/q.k”
“-rw-r–r-- 1 tb tb 5421 Jan 15 2014 /home/tb/q/s.k”
“-rw-r–r-- 1 tb tb 3078 Jan 21 11:17 /home/tb/q/README.txt”
“drwxrwxr-x 2 tb tb 4096 Apr 4 19:56 /home/tb/q/l32”
“-rwxr-xr-x 1 tb tb 557124 Mar 24 18:29 /home/tb/q/l32/q”
q)(“SSSSSSSSSS”;" ")0: x
drwxrwxr-x -rw-r–r-- -rw-r–r-- -rw-r–r-- -rw-r–r-- -..
3 1 1 1 1 1..
tb tb tb tb tb t..
tb tb tb tb tb t..
4096 821 228 150 19402 5..
Apr Jan Jan Jan Mar J..
21 21 21 24 1..
4 11:17 11:17 11:17 18:29 ..
- 19:56 /home/tb/q/sp.q /home/tb/q/q.q /home/tb/q/trade.q /home/tb/q/q.k 2..
- /home/tb/q /..
q)
notice where there’s two spaces, 0: doesn’t treat them as one.
the next problem i will have is the filenames with spaces in them - i’m trying to analyse all the material i’ve gathered over the years over a few disks. .
maybe there are options to ls that makes columns fixed width but i was hoping to learn more about q.
many thanks,
jack.