Jeff Abrahamson on Thu, 10 Oct 2002 09:00:05 -0400 |
On Thu, Oct 10, 2002 at 06:08:33AM -0400, Paul wrote: > How could I sort a list of files by owner? I have a bunch of session > files in /tmp that I want to delete without affecting files that I don't > own. To list my files only, ls -l | awk '$3 == "jeff" {print;}' To create a function, you'll have to fiddle with variable interpolation to get it right. If you want just file names, that becomes ls -l | awk '$3 == "jeff" {print $9;}' -- Jeff Jeff Abrahamson <http://www.purple.com/jeff/> _________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce General Discussion -- http://lists.netisland.net/mailman/listinfo/plug
|
|