<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/1.1.7">
</HEAD>
<BODY>
<BR>
I have a list of files ( lots of files... lots of sub directories. ) and I need to <BR>
find out which ones are read-only. find is supposed to have a -perm option<BR>
that seems like it would help, but I can't figure out how to run it. <BR>
<BR>
I could do a ls -lR and grep for something like -r-* ro dr-* but <BR>
ls -lR would only tell me the file name and not the full path. <BR>
<BR>
I need to get a list of files ( full path ) that are read only. <BR>
<BR>
I accidently did a chmod +w on the files. I didn't want to do that. <BR>
I have another, similar directory that is set up like I need. I would <BR>
like to use that as a 'template' so to speak... get a list of files that<BR>
are read only so I can fix the directory that I messed up. <BR>
<BR>
Thanks - jack <BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
Jack Snodgrass <<A HREF="mailto:jack+ntlug@mylinuxguy.net">jack+ntlug@mylinuxguy.net</A>>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>