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


ADVERTISEMENT

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 :: Difference Between Find Name With And W/o Quotes?

Feb 17, 2011

I was going to file a bug to findutils on gnu.org when I saw a notice that asked me whether I knew the difference between these two commands:find -name *.c and find -name "*.c".I use find command quite often but I don't think these two have any difference.

View 2 Replies View Related

General :: Find The Difference Between Two Files In Different Servers?

Mar 18, 2010

I want to find the difference between two files in different servers , which have trust enabled to ssh without password.

Am using the following command , which shows no output. But i am able to see some difference there in the files manually.

Code:
serv1$diff .profile `ssh serv2 ls .profile`

View 1 Replies View Related

General :: Scripting To Find Difference Between 2 Directories

Dec 17, 2010

Write a script to list all the differences between two directories.

View 1 Replies View Related

General :: Difference Between Lvreduce And Lvresize Command?

Jun 6, 2011

What is difference between lvreduce and lvresize command?

View 2 Replies View Related

General :: Difference Between Source And Dot Command In Linux

Jun 14, 2010

I have written a set of aliases in a file.When i tried to dot it( "Prompt> . filename" ). It said " Permission denied. "But, when I sourced it ("Prompt> source filename"). It worked perfectly.Linux manual has one entry for both the commands. Then what am I missing ?

View 5 Replies View Related

General :: What Is The Difference Between Ext2online And Resize2fs Command

Mar 9, 2011

What is the difference between ext2online and resize2fs command?

View 3 Replies View Related

General :: Difference Between Cron And Command Line Environment?

Feb 18, 2010

so i have a few shell scripts that execute wonderfully when i type them at the command line but they fail when they are run from cron.

for example, if i run a script from command line that contains

Code:
shopt -s nullglob

to prevent problems with for f in *.mp4 type loops, it works fine from terminal command line but when called from cron, it gives an error->

Code:
/home/centralsqwall/Videos/videochecker.sh: 91: shopt: not found

a couple other random errors as well...

so there is some difference in the shell from cron and the terminal?

i'm running ubuntu 9.10, #!/bin/bash

what are the commands i should be using to echo my environment or simulate cron environment from the terminal?

View 3 Replies View Related

General :: Difference In Size Of The Tarred Files After Archiving Using Tar Command?

May 17, 2011

i am using red hat linux 2.4 . I have 3 folders dir1 dir2 dir3 I have tarred them like this.

1.tar cvfz tarball_1.tgz dir1 dir2 dir3

2.tar cvfz tarball_2.tgz dir1 dir2 dir3 2>& /dev/null (So that it does not display any error message or operation details to the user)

[usr@machine]$ ls -lrt
-rw-r--r-- 1 usr grp 199843988 May 17 13:39 tarball_1.tgz
-rw-r--r-- 1 usr grp 199837488 May 17 13:53 tarball_2.tgz

But can any one explain the size difference as seen in list output...

View 4 Replies View Related

General :: What Is Difference Between Power Broker Utility And Sudo Command

Aug 11, 2011

I just wanted to know the difference between Using Sudo mechanism over using Power breaker utilities.

View 4 Replies View Related

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 :: Use The Diff Command To Get The Difference Between A String Of Text And The Contents Of A File?

Mar 31, 2010

I am not especially cli adept so could someone tell me the best way to use the diff command to get the difference between a string of text and the contents of a file instead of between the contents of two files?

View 3 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

Programming :: Difference Between Two Find Commands?

Dec 27, 2009

Code:

find . -name *.txt

Code:

find . -name *.txt

View 10 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 :: 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 View Related

Ubuntu Networking :: Can't Find Any Difference Between The Systems

Jan 20, 2011

I have 3 pc's on home network. All dual boot Windows and Ubuntu. All have Samba installed, plus personal file sharing. When all 3 are booted into linux, all 3 show the public folders on all 3 pc's, but only 2 can access the other pc's folders.

I can't find any difference between the systems to explain why one pc (10.04) cannot mount either of the other two public folders: Unable to mount location. DBus error org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)

even though their icons are shown in 'network'. The public folder on the troublesome pc can be accessed from the other two (10.04 & 10.10).

View 1 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 :: 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







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