Sponsored Content
Full Discussion: Listing 000 permission files
Top Forums Shell Programming and Scripting Listing 000 permission files Post 302526690 by bb2 on Wednesday 1st of June 2011 07:24:53 AM
Old 06-01-2011
Listing 000 permission files

Hi all,

is there a way to list all files with 000 permission and not get "Permission denied" message?

I would like to have names of all those files in one text file.

At the moment, i have this "
Code:
find . -type d \( -name . -o -prune \) -perm 000   > text.txt

" and it is not working.

Can anyone help?

Thank you in advance and best regards,

Bruno

EDIT: my goal is to list folders, not files, sorry

Last edited by pludi; 06-01-2011 at 08:42 AM..
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Recursive directory listing without listing files

Does any one know how to get a recursive directory listing in long format (showing owner, group, permission etc) without listing the files contained in the directories. The following command also shows the files but I only want to see the directories. ls -lrtR * (4 Replies)
Discussion started by: psingh
4 Replies

2. News, Links, Events and Announcements

Microsoft "Donates" $3,000,000,000 to Feds

Surreal quote from the news link below: http://www.washingtonpost.com/wp-dyn/articles/A44615-2002Nov12.html (0 Replies)
Discussion started by: Neo
0 Replies

3. UNIX for Dummies Questions & Answers

file permission 000

hi all i was reading some questions related to file permission if file has 000 permission then who can read the file ? i think no one can read the file. correct me if i am wrong (4 Replies)
Discussion started by: zedex
4 Replies

4. Shell Programming and Scripting

Need help in creating 10,000 files in unix

hi all, I am an UNIX beginner. I need to create 10,000 .dat files in unix. and first file should have 10102009*1*14, second file should have 10102009*2*14, and the 10,000th file should contain 10102009*10000*14, (Comma is a must at end) The file name should be... (1 Reply)
Discussion started by: satishpv_2002
1 Replies

5. Shell Programming and Scripting

Can root user run chmod 000 permission shell script?

Hi, I have a shell script file which is set to access permission 000. When I login as root (sudo su) and try to run this script, I am getting the Permission denied error. I have read somewhere that root admin user can execute any kind of permission script. Then why this behavior? However, I can... (1 Reply)
Discussion started by: royalibrahim
1 Replies

6. UNIX for Dummies Questions & Answers

Take 100MB worth files from 200,000 Files

Hi, I have a process which creates almost 200K files. Each file ranging from 1kb to 5kb. This is almost 2GB of data in all files. I have a requirement where the business needs only 100MB worth of files. Is there a way to get files around 100MB (doesn't have to be exactly 100MB) from all the... (2 Replies)
Discussion started by: grep_me
2 Replies
IO::Async::Protocol::LineStream(3pm)			User Contributed Perl Documentation		      IO::Async::Protocol::LineStream(3pm)

NAME
"IO::Async::Protocol::LineStream" - stream-based protocols using lines of text SYNOPSIS
Most likely this class will be subclassed to implement a particular network protocol. package Net::Async::HelloWorld; use strict; use warnings; use base qw( IO::Async::Protocol::LineStream ); sub on_read_line { my $self = shift; my ( $line ) = @_; if( $line =~ m/^HELLO (.*)/ ) { my $name = $1; $self->invoke_event( on_hello => $name ); } } sub send_hello { my $self = shift; my ( $name ) = @_; $self->write_line( "HELLO $name" ); } This small example elides such details as error handling, which a real protocol implementation would be likely to contain. DESCRIPTION
EVENTS
The following events are invoked, either using subclass methods or CODE references in parameters: on_read_line $line Invoked when a new complete line of input is received. PARAMETERS
The following named parameters may be passed to "new" or "configure": on_read_line => CODE CODE reference for the "on_read_line" event. METHODS
$lineprotocol->write_line( $text ) Writes a line of text to the transport stream. The text will have the end-of-line marker appended to it; $text should not end with it. AUTHOR
Paul Evans <leonerd@leonerd.org.uk> perl v5.14.2 2012-10-24 IO::Async::Protocol::LineStream(3pm)
All times are GMT -4. The time now is 07:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy