General :: Don't Get Find Command

Mar 31, 2010

When I run find command with exec option, it just hangs on me. what am I doing wrong?

find /stdlist -type d -mtime 0 -exec cp -r {} joblogs ;

View 7 Replies


ADVERTISEMENT

General :: Find Mechanism With Irregular Expression (find Command) Or Perl?

Sep 7, 2010

I have 4 Linux machines with cluster.My target is to find all kind of IP address (xxx.xxx.xxx.xxx) in every file in the linux system remark: need to scan each file in the linux system and verify if the file include IP address if yes need to print the IP as the following

more /etc/inet/file.example1

182.23.2.4
255.255.0.0
10.10.1.1

View 1 Replies View Related

General :: Find/grep/wc Command To Find Matching Files - Print Filename And Word Count?

Sep 11, 2009

I am trying to do a find/grep/wc command to find matching files, print the filename and then the word count of a specific pattern per file. Here is my best (non-working) attempt so far:

wc `find . ( -name "*.as" -o -name "*.mxml" ) -exec grep -H HeightResizableList {}` ;

View 10 Replies View Related

General :: Command Line - Use Find To Find Text Files?

Jul 15, 2011

Is there a way to specify to find that I only want text files (and not binary files)? Grep has an option to exclude binary files, so I thought find probably has a similar feature, but I've been unable to find it.

View 2 Replies View Related

General :: Find Setuid Files Using FIND Command?

Jan 25, 2009

I know how to search for normal files but can you let me know " How to search for 5 setuid files on the system. Also explain, for each file, why setuid mechanism is necessary for the command to function properly"

View 1 Replies View Related

General :: Find A File In Directories Without Using Find Command?

Aug 3, 2010

am new to linux and trying to find a file in sub directories using find command as:find .-name *.jpg -type fBut I am unable to get the result as find command is not permitted by the server administrator.Is there any way to find files without using find command.

View 14 Replies View Related

General :: Run A Command Per File From The Output Of "find" Command?

Sep 8, 2010

I want to scan a particular directory recursively and run a particular command with each file as input. For this I am using "find /dir/path". I dont want to write any long script containing loop on the output of "find". I want a single command which will allow me to run a command on each file of the "find" command output.

View 3 Replies View Related

General :: How To Know If The Command Find Any Result

Oct 21, 2010

#!/bin/shLOOK_FOR="NTLMAuthenticationFilter"for i in `find ./ -name "*jar"`doecho "Looking in $i ..."grepjar -e $LOOK_FOR $idoneI wrote the script above, and try to find if there any file name LOOK_FOR exist in those jar,my quest is: grepjar -e $LOOK_FOR $ihere how can I check if there are any successful result , and output them ?

View 2 Replies View Related

General :: Difference Between *.xml And *.xml In Find Command?

Nov 1, 2010

What is the difference between *.xml and *.xml in find command in Linux/macThe results of:find . -name *.xml and find . -name *.xml are different. But why?Also, is locate '*.xml' better than find? Which one is the most commonly used?

View 1 Replies View Related

General :: Command To Find Only Mtime?

Aug 12, 2010

I've got a script where I have to parse out the last modified time for a large amount of files. Piping the output for "ls" into "cut" seems to work most of the time, but the output is unpredictable.The "fields" argument doesn't find the date modified columns consistently, and using character count is as well since the output can vary in width depending on the file name

View 3 Replies View Related

General :: Getting The Command To Find Out Users?

May 17, 2010

I want to know the command which will list the local users created by me not system users.

View 6 Replies View Related

General :: Command To Find The SD Card?

Jun 13, 2010

How to find info and contents of the SD card via linux terminal. I found a command "mount"in internet. According to it it's in dev/sdb/.. but I didn't found such. I saw dev/sdc/

View 5 Replies View Related

General :: Command To Find Distribution?

Jan 20, 2011

command to find the Distribution of Linux.

View 7 Replies View Related

General :: Exclude Dir From Find Command

Feb 5, 2011

i have this find command to find modified files and copy them.Code:find $SRC_DIR -type f -ctime -1|xargs -i cp --parents {} $BACKUP_DIR/$DAY/and it works good but it want to exclude files that exist in some folders like $SRC_DIR/cash and $SRC_DIR/woks/tmp

View 3 Replies View Related

General :: Find Out PID Of A Command Which Is In History?

Jun 20, 2011

If someone has done something wrong on a shared linux machine. If i want to find out who is that person or ip from where it is been done what are all the possible ways. 1 possibility I thought was to get the PID of the command and get other details from that PID?

View 4 Replies View Related

General :: Find Most Used Command In Distribution?

Oct 27, 2010

t has been long time since i used the command that used to display the most widely used command in the distribution .It was in following format.(I guess it was a combination of history head sort grep or something like that)

50 ls -ltr
3 neat-tui
1 touch abc

I tried finding the command in google but wasnt able to find it

View 1 Replies View Related

General :: Refine The Find Command?

Jul 12, 2010

Ive tried to rsync from one ~/home on hdd a, to ~/home hdd b, using a live cd, but it returns a load of; eg:

rsync: opendir "/media/a2ab9331-effd-4855-8e0a-6c7f1a9d63b5/home/nnjond/.Skype" failed: Permission denied (13)

So i think i should fresh install and it would be convenient if i knew the refined commands to locate the saved files in /home hdd a, since 02_06_10 (not including all the hidden or deleted files), and then copy to a memory stick using the nautilus gui.

View 2 Replies View Related

General :: Find Command In Locate Pdf Files?

May 25, 2010

My goal is to find all pdf files on a remote machine, so I resort to the useful command find. So I type find .pdf or find .pdf" and I get nothing. I do the same on my machine and I get nothing. I do a regular search from the menu on my machine and I find quite a few pdf files. Would somebody please tell me what am I doing wrong?

View 5 Replies View Related

General :: Command To Find Out Hardware Info?

Jun 29, 2011

I need to find out hardware information for the below items under Linux:

CPU (and cores)
CPU speed
Memory
Hard disks
OS version

View 6 Replies View Related

General :: Find And Replace Command For Whole Directory

Aug 17, 2011

Is there any command in Linux which will find a particular word in all the files in a given directory and the folders below and replace it with a new word?

View 4 Replies View Related

General :: Find The Equivalent Command Of A Gui Operation?

Apr 12, 2010

We often require to find an equivalent text command for any GUI operation. Just as an example we click on a folder (say ABC) from the current directory in order to see the contents of that directory. The equivalent command for it to happen would be->

Code:
cd ABC ls Now the thing is that we often don't know what that equivalent command will be. So I want to know that is there any way out to find it. What I want to do is that I shall perform any operation using mouse in the GUI mode(whatever operation it could be) and then I can see a log file to see what I actually did last(rather what the command would have been if I have worked in the text mode)...

View 1 Replies View Related

General :: Noatime Mount And Find Command?

Nov 30, 2010

If the filesystem is mounted with noatime option does it influence find -atime behaviour? I tested and it looks that find is able to see access time but why should it if mounted with noatime? Or maybe it depends on the type of filesystem (I`m using XFS)?EDIT: Looks the answer is [URL]htmlIf a file system has been mounted with this option, reading accesses to the file system will no longer result in an update to the atime information associated with the file like we have explained above. The importance of the noatime setting is that it eliminates the need by the system to make writes to the file system for files which are simply being read. Since writes can be somewhat expensive, this can result in measurable performance gains. Note that the write time information to a file will continue to be updated anytime the file is written to.

View 1 Replies View Related

General :: Command Used To Find Out Open Ports?

May 28, 2010

What UNIX command do you use to find out the open ports in a system?

View 1 Replies View Related

General :: What Is The Command To Find Out What CPU Architecture The Box Holds Out

Apr 8, 2010

What is the command to find out what CPU architecture the Linux Box holds out of following:

[Code]...

View 12 Replies View Related

General :: Difference Between Grep And Find Command?

Dec 24, 2010

For searching a file or directory i normally use grep command. kindly can you guide me the difference between grep and find command. I have used both but that are the difference between them ? are the same or grep is new as comapird to find command.

View 2 Replies View Related

General :: Find And Copy Command Comdined Together?

Feb 25, 2010

I want to find files of a particular tyepe and particular date to be copied into a seperate folder.How do i do achieve this in a single line using the find and copy command.

View 8 Replies View Related

General :: Find Command With -mtime +15 Or -15 Days?

Feb 2, 2011

I am writing a bash script which includes the find (and rm command with exec) command the options -mtime -15 or +15 so that files older 15 days must be deleted from the home directory. I think that -mtime +15 should be ok, but in which case does the option -mtime -15 really come in handy?? go back 15 days until today's date?

View 1 Replies View Related

General :: Which Command To Use To Find Out System Configuration

Apr 10, 2010

which command to use to find out system configuration

View 5 Replies View Related

General :: Execute -depth In Find Command?

Apr 23, 2010

within my bobje directory, I have many directories and some log files . I want to delete those log files without traversing the subdirectories. so i performed these commands and getting the mentioned errors.

[Code]....

View 8 Replies View Related

General :: Using Find Command To Print Timestamp

May 27, 2010

I am looking for a way to print the timestamp of a directory using find command. I can do that for a file, but for a directory, it is printing the contents of the directory as well. Lets say there is a directory called doc, and there are more than one occurrences of that directory.

find . -name "doc" -type d -exec ls -l {} ;

This is printing the contents of all the files under doc directory as well.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved