Find Usage solved


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Find Usage solved
# 1  
Old 04-17-2010
Find Usage solved

How can I find the biggest file in a branch?

I tried

find / \*.\* | xargs du | sort -n 1,1 | head 1

but shell do nothings Smilie

---------- Post updated at 03:07 PM ---------- Previous update was at 02:41 PM ----------

Solved:

find / -name \*.\* | xargs du | sort -nr | head -n 1

Last edited by Guccio; 04-17-2010 at 05:06 PM.. Reason: Solved
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

[Solved] "Which Perl" Usage Question . . .

Greetings! Just a basic syntax question :) Today, I want to launch a perl script from the command line with an explicit path to wherever perl may be installed on any particular system. In my bumblings, I came up with this: which perl | /etc/something.plOf course it doesn't work; but I was... (2 Replies)
Discussion started by: LinQ
2 Replies

2. Solaris

Usage of -prune and -name in find

I am into cd /home/work/amey/history-*/ Under amey I have directories history, history-1, history-2 and under history-2 I have got 2 files 3 and 2. When I run the find command I get the below o/p. find /home/work/amey/history-*/. -name . -o -prune -type f /home/work/amey/history-1/.... (1 Reply)
Discussion started by: ameyrk
1 Replies

3. Shell Programming and Scripting

[Solved] Usage of shell commands inside a C program

Hi I have a program int main(int srgc, char *argv) { for(int i=1; i<50; i++) { system("dd if=/dev/zero of=file$i bs=1024 count=$i"); } return 0; } My doubt is how to use the "$i" value inside C code Please help (2 Replies)
Discussion started by: Priya Amaresh
2 Replies

4. Shell Programming and Scripting

Usage of find and cp with duplicate

Hi All ! I am trying to copy all files with extension .sh to one folder, following command I am using find . -name \*.sh -print0 | xargs -I{} -0 cp -v {} Scripts/ above command working fine but I have some .sh file with same base name different directory, so I would copy all .sh file including... (5 Replies)
Discussion started by: Akshay Hegde
5 Replies

5. Shell Programming and Scripting

[Solved] need to get cpu usage with 1 request

Hello, i`m creating an script that collect`s data from virtual machines about cpu usage and store that data into RRD. so everything now works fine, but it takes long time if in machine is a lot of virtual`s. so i want to make my script to collect information with 1 request. at this time... (3 Replies)
Discussion started by: grauzikas
3 Replies

6. UNIX for Dummies Questions & Answers

find usage with parameters

i have this basic piece of code to look for an aging file based on an input parameter. pfile=$1 pdir=`pwd` echo current directory $pdir for i in `find . "$pfile" -mtime +540` do echo aging files $i done # put a white space echo the above code works and gives me the listing of... (6 Replies)
Discussion started by: wtolentino
6 Replies

7. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

8. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

9. Solaris

Usage find command

is there any way to search the file using find command, so that it searches for the file considering the file name as case in-sensitive For example file name is AbcD.txt but i'm not sure of the file name just remember it was abcd.txt find / -name "abcd.txt" -print how do we go bout the... (2 Replies)
Discussion started by: raman1605
2 Replies

10. UNIX for Advanced & Expert Users

find command usage

I usually ise find to search a file or name on the unix, since I am not administrator, there will be many line appear 'cannot access',usually a hundred of lines. How can I prevent this line coming out? only show I want? The command I use is : find / -name abcdef -print Thank all expert. (1 Reply)
Discussion started by: zp523444
1 Replies
Login or Register to Ask a Question
GIT-CHERRY(1)							    Git Manual							     GIT-CHERRY(1)

NAME
git-cherry - Find commits not merged upstream SYNOPSIS
git cherry [-v] [<upstream> [<head> [<limit>]]] DESCRIPTION
The changeset (or "diff") of each commit between the fork-point and <head> is compared against each commit between the fork-point and <upstream>. The commits are compared with their patch id, obtained from the git patch-id program. Every commit that doesn't exist in the <upstream> branch has its id (sha1) reported, prefixed by a symbol. The ones that have equivalent change already in the <upstream> branch are prefixed with a minus (-) sign, and those that only exist in the <head> branch are prefixed with a plus (+) symbol: __*__*__*__*__> <upstream> / fork-point \__+__+__-__+__+__-__+__> <head> If a <limit> has been given then the commits along the <head> branch up to and including <limit> are not reported: __*__*__*__*__> <upstream> / fork-point \__*__*__<limit>__-__+__> <head> Because git cherry compares the changeset rather than the commit id (sha1), you can use git cherry to find out if a commit you made locally has been applied <upstream> under a different commit id. For example, this will happen if you're feeding patches <upstream> via email rather than pushing or pulling commits directly. OPTIONS
-v Verbose. <upstream> Upstream branch to compare against. Defaults to the first tracked remote branch, if available. <head> Working branch; defaults to HEAD. <limit> Do not report commits up to (and including) limit. SEE ALSO
git-patch-id(1) GIT
Part of the git(1) suite Git 1.7.10.4 11/24/2012 GIT-CHERRY(1)