LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-01-2017, 12:23 AM   #1
gursewaks056
LQ Newbie
 
Registered: Sep 2017
Location: Chandigarh
Distribution: Ubuntu 16.04 LTS
Posts: 13

Rep: Reputation: Disabled
I want No directory with find


"find . -size +1024c"

my current directory has following files larger than 1024bytes:
file1.txt
file2.txt
folder/file3.txt

Then above command gives the result :
file1.txt
file2.txt
folder
folder/file3.txt

_________________________________________

But I dont want to print folders. How can i achieve it.
 
Old 11-01-2017, 12:31 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,307
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Have you looked at the -type option?

Code:
man find
It can also be negated if necessary.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
find the largest and smallest file in a directory and sub directory schandran Programming 5 05-06-2015 09:53 AM
How to find the directory and remove the directory swathikumar Linux - Newbie 3 11-21-2011 12:38 PM
[SOLVED] Find a directory shik28 Linux - Newbie 7 09-20-2011 12:21 AM
Find directory older than x and mv directory with sub files command ajhart Linux - Newbie 4 07-15-2011 05:24 AM
[SOLVED] Find Directory only doby48 Linux - Newbie 4 07-19-2010 04:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration