Printing more info than find command gives out


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Printing more info than find command gives out
# 1  
Old 07-01-2015
Printing more info than find command gives out

Hi,
I am trying to find files that are more than a gig with this command
Code:
find . -size +1073741823c

and it just gives me the names of the files. How do i get it to give me the actual size of the files too?

---------- Post updated at 09:41 AM ---------- Previous update was at 09:37 AM ----------

I just answered my own question
do
Code:
 find . -size +1073741823c -exec ls -l {} \;


Last edited by rbatte1; 07-01-2015 at 11:02 AM.. Reason: CODE tags please!
# 2  
Old 07-01-2015
or
find path -condition1 -condition2 -ls
# 3  
Old 07-05-2015
Quote:
Originally Posted by LilyClaro
Code:
 find . -size +1073741823c -exec ls -l {} \;


Better would be:
Code:
find . -size +1073741823c -exec ls -l {} +

Besides using many fewer calls to ls, the listings will be properly aligned.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Printing the user and group info

Hi All, i want to collect all the users info whose id greater than 999 and print the groups information which they belong. example : for user in $(cut -d: -f1,3 /etc/passwd | egrep ':{4}$' | cut -d: -f1); do groups $user; done centos : centos adm wheel systemd-journal balu : balu ... (2 Replies)
Discussion started by: balu1234
2 Replies

2. UNIX for Beginners Questions & Answers

Script to find file types and info

I'm looking for a way to inventory files on a webserver into a CSV file, and am particularly interested in certain types of files, like .php, .cgi, .pl, .py, .sh, etc. but also want the ability to find all files, including those with no extension, or specified extensions, as above, including files... (1 Reply)
Discussion started by: spacegoose
1 Replies

3. Shell Programming and Scripting

ksh script find command not printing any results

Hello, Hitting a wall on this one. When at the command prompt it works fine: # find /home/testuser -name 'PAINT*canvasON.txt' /home/testuser/PAINT_canvasON.txt # pwd /home/testuser # ls -l PAINT*canvasON.txt -rw-r--r-- 1 root user 23 Feb 07 02:58 PAINT_canvasON.txt... (2 Replies)
Discussion started by: seekryts15
2 Replies

4. UNIX for Dummies Questions & Answers

Like to find text info from a list From-To

Wrong form sorry Can be deleted (1 Reply)
Discussion started by: Jotne
1 Replies

5. Shell Programming and Scripting

How to find DL Owner info using ldapsearch?

Currently i have following syntax: ldapsearch -D "CN=..,OU=..,OU=All Businesses,DC=..,DC=..,DC=.." -w .. -h .. -p .. -b "OU=All Businesses,DC=..,DC=..,DC=.." "managedObjects=$DL_NAME_CN" employeeNumber givenName sn -S employeeNumber -x which gives me following info: "requesting:... (0 Replies)
Discussion started by: arsenghani
0 Replies

6. Solaris

How to find FC info on Sun x86 system?

Hi, we have a Sun x4150 server connecting to Brocade switches. I need to get all WWN on the Sun server. Here is the result: # fcinfo hba-port No Adapters Found. # prtconf -vp | grep -i wwn # luxadm probe ERROR: No Fibre Channel Adapters found. # luxadm -e port ERROR: No Fibre Channel... (2 Replies)
Discussion started by: aixlover
2 Replies

7. Red Hat

How to find VMware info from Linux?

Hi, I have two questions about Linux with VMware: (1) How to tell if the system is real or VMware virtual from a Linux platform without root privilege? (root can use 'dmidecode | grep -i vmware). The command 'dmesg | grep -i vmware' run by everyone is not always working for this purpose. (2)... (2 Replies)
Discussion started by: aixlover
2 Replies

8. HP-UX

How to find tcsh shell version info in HP-UX?

Hi, I need to find tcsh shell version info on several boxes. I made a script and running on boxes through SSH. This is what i am doing : echo /bin/tcsh -c 'echo $version' | ssh "box name" but i dont see anything. if i run /bin/tcsh -c 'echo $version' on ocal machine i see the... (2 Replies)
Discussion started by: kailash19
2 Replies

9. Shell Programming and Scripting

[sed/awk] find info and replace

Hi :) I have some problems with "FOR"... I have a text file in this format: name1 www.link1/random_number name2 www.link2/random_number name3 www.link3/random_number ... (Names and info changes) Now, I need: (4 Replies)
Discussion started by: aspire
4 Replies

10. UNIX for Dummies Questions & Answers

How do I find out general system info?

How can I find out what type of processor, and speed, along with memory info such as RAM and storage. Also how do I scrollup on the shell? (2 Replies)
Discussion started by: AllyJones
2 Replies
Login or Register to Ask a Question