Re: Need help in comparing permissions/ownerships on different systems
- From: Ayaz Ahmed Khan <ayaz@xxxxxxxxxxxxxx>
- Date: Fri, 22 Dec 2006 11:39:12 +0500
"snoopy_@xxxxxxxxxx" typed:
I have started down both paths that you recommend only to choke.
For one, the octal conversion for pattern matching might be a high
overhead for a program; every file it would have to figure out the
octal? I think I have decided to just match the whole expression.
I.E. If ( "-rwxrw-r--" -eq "-rw-r--r--)....
Yes, you can do without converting permission strings into equivalent
octal representations. I needed that in my script because the missing rest
part of that script, which I will work on in future, deals with
*resetting* the permissions of files whose permissions look warped.
--
Ayaz Ahmed Khan
It is impossible to defend perfectly against the attack of those who
want to die.
.
- References:
- Re: Need help in comparing permissions/ownerships on different systems
- From: snoopy_@xxxxxxxxxx
- Re: Need help in comparing permissions/ownerships on different systems
- Prev by Date: Re: Speeding up an application - general rules
- Next by Date: FAQ 4.31 How can I split a [character] delimited string except when inside [character]?
- Previous by thread: Re: Need help in comparing permissions/ownerships on different systems
- Next by thread: Re: Need help in comparing permissions/ownerships on different systems
- Index(es):
Relevant Pages
|