I have a utility named FLIST.READU that replaces the inode from the standard LIST.READU output with the file name. It uses "ls -i", so it's limited to files in the account you run the command from, though. Works fine for us because all of our users work out of the same account. This is the relevant part of the code:
INODE.NO = TRIM(READU.ARRAY<I,3>) EXECUTE 'SH -c "ls -i | grep ':INODE.NO:'"', OUT > FILENAME IF FILENAME<1,1,1> # '' THEN FILENAME = FIELD(TRIM(FILENAME<1,1,1>),' ',2) 'L#8' It's also pretty resource intensive because it re-lists the entire account for every inode. Probably not much of an issue if your hardware is fairly new. -John -----Original Message----- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Wjhonson Sent: Friday, March 16, 2012 12:24 PM To: u2-users@listserver.u2ug.org Subject: [U2] Turn a device and inode into file name Anyone have an easy way to do this? In the past I've run a batch routine to just query each and every Universe file for it's inode and device and build a table of these Every week.... Seems like a great amount of overkill to me. You could also mod the CREATE-FILE command to sniff it and make an xref entry but .... Any suggestions? This is NOT for the case where you know the file and want to find the inode and device It's for the case where you know the inode and device (only) and want to find the file. _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users