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
XtMenuPopdown() 														   XtMenuPopdown()

Name
  XtMenuPopdown - built-in action for popping down a widget.

Synopsis (Translation Table)
  <Event sequence>: XtMenuPopdown([shell])

Inputs
  shell     An optional argument which specifies the name of the shell to pop down.

Availability
  This action is named MenuPopdown prior to Release 4.

Description
  XtMenuPopdown  is a predefined action procedure which does not have a corresponding public C routine.  It can only be invoked from a trans-
  lation table.  If passed an argument, that argument is interpreted as a shell name, and XtMenuPopdown tries to  find	the  named  shell  by
  looking up the widget tree starting at the parent of the widget in which it is invoked.  If it finds a shell with the specified name in the
  popup children of that parent, it pops down the shell by calling XtPopdown(); otherwise, it moves  up  the  parent  chain  as  needed.   If
  XtMenuPopdown  gets  to the application top-level shell widget and cannot find a matching shell, it generates a warning and returns immedi-
  ately.  If XtMenuPopdown is called with no argument, it calls XtPopdown() on the widget for which the translation is specified.

Usage
  Note that XtMenuPopdown is an action procedure; you cannot call it from C code.

  The action name MenuPopdown is a synonym for XtMenuPopdown.  Either action can be used to pop down menus or other popup shells.

  Popup shells can also be popped down by calling XtPopdown() explicitly, or by using the predefined callback procedure XtCallbackPopdown().

  The action XtMenuPopup can be used to pop up a spring-loaded popup from a translation table.

See Also
  XtCallbackPopdown(1), XtMenuPopup(1), XtPopDown(1), XtPopup(1), XtPopupSpringLoaded(1).

Xt - Pop Ups															   XtMenuPopdown()