Sponsored Content
Full Discussion: unix find command
Top Forums UNIX for Dummies Questions & Answers unix find command Post 302513566 by Corona688 on Wednesday 13th of April 2011 03:11:05 PM
Old 04-13-2011
Quote:
Originally Posted by Tirmazi
This command is intended to compare two drives to see if all files are identical, can some one please decode what it is doing.
Let's break it down bit by bit.


Code:
find /                        # Search inside /
 -path /proc -prune           # Ignore anything inside /proc
 -o -path /new-disk -prune    # OR ignore anything inside /new-disk
 -o -xtype f                  # OR match only files.
# For everything left, execute cmp "/path/FILENAME" "/new-disk/path/FILENAME"
 -exec cmp {} /new-disk{}
 \;                           # -exec stops finding args at ;


Last edited by Corona688; 04-13-2011 at 04:16 PM..
These 2 Users Gave Thanks to Corona688 For This Post:
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to find a command in Unix?

How can I know that my FreeBSD OS has commands mkdir or mkfile? Can I do like this: find / -name mkdir find / -name mkfile But I do not see them??? Thanks. (1 Reply)
Discussion started by: lacasa
1 Replies

2. Shell Programming and Scripting

how to find a file in UNIX without find command?

given a start directory,a filename,how to find it? (3 Replies)
Discussion started by: bluo
3 Replies

3. UNIX for Dummies Questions & Answers

The UNIX find command

Hi All, I trying to get my head around using the find command and i wanted to list a selection of files that are older than 30 days. i used 'find . -mtime +30' and it lists all the files including other files from the current location's sub directory. i then used the prune option but it seems it... (5 Replies)
Discussion started by: scriptingmani
5 Replies

4. Shell Programming and Scripting

Little bit weired : Find files in UNIX w/o using find or where command

Yes , I have to find a file in unix without using any find or where commands.Any pointers for the same would be very helpful as i am beginner in shell scritping and need a solution for the same. Thanks in advance. Regards Jatin Jain (10 Replies)
Discussion started by: jatin.jain
10 Replies

5. UNIX for Dummies Questions & Answers

unix find command

I need help with tweaking the unix find command. currently the find command searches all the directories under $div/users modified in the last 1 day. find $div/users -type d -mtime +1 I need this changed to find only subdirectories and sub-subdirectories modified in the last 1 day under... (1 Reply)
Discussion started by: mnnarendra
1 Replies

6. Shell Programming and Scripting

unix find command

I need help with tweaking the unix find command. currently the find command searches all the directories under $div/users modified in the last 1 day. find $div/users -type d -mtime +1 I need this changed to find only subdirectories and sub-subdirectories modified in the last 1 day under... (3 Replies)
Discussion started by: mnnarendra
3 Replies

7. Shell Programming and Scripting

What is find and replace command in unix?

hello forum memvers, 1:I have to write a script for find a string and replace with another string. 2:In shell script how to replace one string with another string.:b: (4 Replies)
Discussion started by: rajkumar_g
4 Replies

8. Homework & Coursework Questions

Unix find and head command help

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I've been stuck on this problem for 2 days now What command would you enter to list the first lines of all text... (11 Replies)
Discussion started by: partieboi37
11 Replies
DXmColorMixSetNewColor(3X)												DXmColorMixSetNewColor(3X)

NAME
DXmColorMixSetNewColor - Sets the new color red, green, and blue values in the color mixing widget. SYNOPSIS
void DXmColorMixSetNewColor( DXmColorMixWidget cmw, unsigned short red, unsigned short green, unsigned short blue ); PARAMETERS
The identifier (widget ID) of the color mixing widget. The new color red value. The value is expressed as an X color value (0 to 65535). The new color green value. The value is expressed as an X color value (0 to 65535). The new color blue value. The value is expressed as an X color value (0 to 65535). A complete list of all the X color values available to you is located on your system. To find it, type the following command: % find / -name '*rgb*' -print DESCRIPTION
The DXmColorMixSetNewColor routine allows the application or a user-supplied color mixer subwidget to pass the current color value to the color mixing widget. Note that your application will perform this operation faster if you call this routine instead of the Intrinsic rou- tine XtSetValues. SEE ALSO
DXmColorMixGetNewColor(3X), DXmCreateColorMix(3X), DXmCreateColorMixDialog(3X) DXmColorMixSetNewColor(3X)
All times are GMT -4. The time now is 09:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy