Птн, 21 Май 2010, Nich Saville писал(а):
> Can anyone tell me a j phrase which lists the files in  a directory 
> whose name is given as the y. argument?
> Thanks, Nich
> 

For single level, try 1!:0 <'/aaa/bbb/*'
eg.
   1!:0 <'/home/bill/j7x/*'
┌───────────┬──────────────────┬────┬───┬──────┬──────────┐
│gtk        │2010 5 20 7 52 43 │4096│rwx│----d-│drwxr-x---│
├───────────┼──────────────────┼────┼───┼──────┼──────────┤
│breaker.ijs│2010 5 18 19 14 48│1317│rw-│------│-rw-r--r--│
├───────────┼──────────────────┼────┼───┼──────┼──────────┤
│help       │2010 4 19 12 24 20│4096│rwx│----d-│drwxr-xr-x│
├───────────┼──────────────────┼────┼───┼──────┼──────────┤
│user       │2010 5 21 11 39 15│4096│rwx│----d-│drwxr-xr-x│
├───────────┼──────────────────┼────┼───┼──────┼──────────┤
│bin        │2010 5 21 11 25 54│4096│rwx│----d-│drwxr-xr-x│
├───────────┼──────────────────┼────┼───┼──────┼──────────┤
│system     │2010 5 18 19 14 49│4096│rwx│----d-│drwxr-xr-x│
├───────────┼──────────────────┼────┼───┼──────┼──────────┤
│j7.sh      │2010 5 18 19 14 50│110 │rwx│------│-rwxr-xr-x│
├───────────┼──────────────────┼────┼───┼──────┼──────────┤
│tools      │2010 5 19 11 13 26│4096│rwx│----d-│drwxr-xr-x│
├───────────┼──────────────────┼────┼───┼──────┼──────────┤
│test.ijs   │2010 5 18 19 14 48│249 │rw-│------│-rw-r--r--│
├───────────┼──────────────────┼────┼───┼──────┼──────────┤
│base       │2010 5 21 11 35 27│4096│rwx│----d-│drwxr-xr-x│
├───────────┼──────────────────┼────┼───┼──────┼──────────┤
│viewer.sh  │2010 5 18 19 14 50│148 │rwx│------│-rwxr-xr-x│
├───────────┼──────────────────┼────┼───┼──────┼──────────┤
│image.ijs  │2010 5 19 10 38 18│1569│rw-│------│-rw-r-----│
├───────────┼──────────────────┼────┼───┼──────┼──────────┤
│addons     │2010 5 20 10 25 31│4096│rwx│----d-│drwxr-xr-x│
└───────────┴──────────────────┴────┴───┴──────┴──────────┘

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to