General :: Using Find Command To Search For All Pictures, Or All Music?

May 17, 2010

Trying to find a way to have the find command perform a search using multiple file extensions such as "find all pics" i.e. .jpg, .png, .gif, .raw etc. I would have thought something like the following would have worked, but apparently I'm doing something wrong:

sudo find / -type f -iname "*.jpg" "*.png" "*.gif" -printf

I'm guessing find simply doesn't support more than one "-name/-iname" at a time? Or perhaps I'm going about this the wrong way? I realize most times there's several different ways to skin a cat when a task is requested in linux/unix.

View 5 Replies


ADVERTISEMENT

General :: Case Insensitive Search From Find Command?

Apr 29, 2011

I am not able to figure out how can I do case-insensitive search using the find command.

I tried

find . -name -i pattern

And it does not work.

View 2 Replies View Related

General :: Find Command \ Search File Excluding The NFS?

Jan 20, 2010

I want to search file excluding the NFS ...find / -mount -name 'filename' restricts the search only in the root disc partition,but the file can be in other partitions alsoIs there any way to exclude the NFS only.

View 2 Replies View Related

General :: Find Command To Search Wildcard In Path?

Dec 8, 2009

I need a command to search for any file in a directory like so:

/home/*/upload/* and then change permissions any file in that directory.

Find doesn't seem to match what I need.

View 12 Replies View Related

General :: Find Command When Loggin As A Normal User And Search For A File Passwd Under?

Dec 25, 2010

when loggin as a normal user and search for a file passwd under /etc. i get few errors with permission denied.how to ignore this permission denied errors.

csh hostname 109 % find . -name passwd
find: ./lvm/backup: Permission denied
find: ./lvm/archive: Permission denied

[code]....

View 4 Replies View Related

Debian :: Use The Find Command To Search For Devices Files?

Mar 23, 2010

I've got 2 problems:1. How can I use the find command to search for devices files?2. I need to find all files thaare 6 months (or more) old and that have a size of 2 Mo or more. What would the code look like?Oh and also, how can I use the cat command to insert text in a file?

View 2 Replies View Related

Programming :: Find Command To Search For All The File In The Particular Folder?

Aug 2, 2011

how to use find command to search for all the file in the particular folder?my script as below

find . -name "*" > $BASE/file
if [ `more file | wc -l` -gt 0 ]; then
echo "dp"
fi

output of my results will always include a . (dot)which I dunwan it include the dot.

View 11 Replies View Related

Software :: Automatic Backups (of Pictures, Music, Etc) To DVD?

Jun 19, 2010

I'm trying to set up my home server, which runs Fedora 12, to automatically backup user documents like pictures, music. I want it to make a new DVD or ISO image on, say, a weekly basis, and to only backup the files created since the last backup. I discovered mondoarchive, but I'm not sure if this is capable of doing that. Is there a tool that I can use to do this?

View 2 Replies View Related

Ubuntu :: Multiple Users Sharing The Same Music/Pictures/Video?

Mar 7, 2010

We have a collection of music for the entire family. Can each user's Music folder point (for lack of a better word) to the same physical directory? Can I do this with mounts, or is there a better way?

View 4 Replies View Related

Ubuntu :: Change The Default Paths For Pictures, Documents, Music?

Jan 16, 2011

I am wondering how to change the default paths for Pictures, Documents, Music, etc to different paths (on a different partition within the same HDD). What's the cleanest way of going about this?

View 5 Replies View Related

Ubuntu / Apple :: Unable To Access Music, Documents, Pictures, Etc. After Mounting Macintosh HD?

Jan 22, 2010

I have a Macbook Pro 5,5 with Ubuntu 9.10 installed using rEFIt. When I mount the Macintosh HD in Ubuntu, I am unable to access any of the folders under Users, except Public. I tried changing the permissions in OSX, setting "Read and Write" for "Everyone" on a couple of folders, and, when I log back into Ubuntu, I can see that those are the permissions for the folder, but Ubuntu still tells me that I do not have permission to access the folder. I've tried setting the folder to share, thinking that this must be the reason that I can access Public with no problems, but it didn't work.

I've browsed the internet extensively, and the only thread I could find related to the issue was by someone who had the exact same problem as me (I don't know if they had the same macbook though), and it was never solved (the only advice given was to either change the Ubuntu user number, or change the permissions of the folder).

View 4 Replies View Related

Ubuntu Networking :: Connecting 10.04 With Windows 7 - Transfer Files Like Music - Documents - Pictures

Jun 20, 2010

I want to connect a laptop running ubuntu 10.04 to a laptop running windows 7 via direct connection in order to transfer files like music, documents, pictures, etc. I have an ethernet cable that I thought I would need in order to do it. Is that even possible?? If so, how would I go about doing that?

Now, I have tried to share the files wirelessly but for some reason when I pick up the workgroup on the ubuntu laptop and enter the password in order to connect to the windows laptop it says my password is wrong, when I know for a fact that it is not. I know I can transfer files with a flash drive and what not but I want to try to get this working.

View 1 Replies View Related

General :: Find/search Root Partition ONLY?

Jun 11, 2010

Say I need to do: find / -name somefile.txt

And say root partition / is mounted on /dev/sda5; however, let's say I also have 250GB partitions (/dev/sda6, /dev/sda7) mounted in /media - AND another location that I cannot currently remember. Say, also, that I know the file I'm looking for is on /dev/sda5.

Obviously, the above command will also descend in /media and that other directory which represent the big partitions, wasting time in looking for the file in the wrong place.

Is there a way to instruct find (or other command) to search only / on /dev/sda5, and NOT to descend to directories if they are on different partitions ?

View 1 Replies View Related

General :: Find Text After String Search In File

Aug 2, 2011

I have a file called Regions.ini that looks like this:

Code:
[Granite]
RegionUUID = 54ab7cd2-0e70-49b7-8020-8dbeb84c08d0
Location = 9991,10007
InternalAddress = 0.0.0.0
InternalPort = 9001
AllowAlternatePorts = False
ExternalHostName = 71.171.21.9

[Syenite]
RegionUUID = 8fc56fdd-0afd-4074-9432-0ae8f42b799f
Location = 9992,10007
InternalAddress = 0.0.0.0
InternalPort = 9000
AllowAlternatePorts = False
ExternalHostName = 71.171.21.9
What I need to do is find out what the IP address is after "ExternalHostName ="

After that I will need to compare that IP to whatismyip and if it's different then replace it but that is easy to do with sed. I just can't figure this simple hurdle out.

View 12 Replies View Related

General :: Use Command To Open First Search Result With Vi?

Nov 10, 2010

Every time I need to find a file and then open it, I have to use :
find ./ -name **.properties. , then copy the result, and then vi "paste the result here" .
If I need to use a mouse, it can be a little trouble. So is there any better way to do this?

View 6 Replies View Related

General :: Command Line Search Tool

Apr 10, 2011

This is a bit of a long shot and I think the answer will be no but I thought I'd ask just in case. I have a number of tutorials in html but I want to be able to search for particular information in these files and display that information in the terminal rather than having to go through a browser. Apart from using grep which gives a pretty messy display or having to write a a specially Bash or python script, is there any command line tools that can provide such a function?

View 4 Replies View Related

General :: Search A File To Find If Variable Belongs To A Field?

May 18, 2011

I have a file that contains 5 fields and anothen one with two I want to take the value from user and search file1 and if the value exists then write in file2 to the $2 to the line that $1=value

file 1
1:fsdfsd:g:33:fsdf
2:yytgdcf:a:3:sgd
3:tttt:g:67:yujhggfg

[code].....

View 2 Replies View Related

Ubuntu :: Desktop Search Dead \ Trying To Find A Good Desktop Search Tool?

Jun 16, 2011

I'm trying to find a good desktop search tool. Beagle is dead, Recoll and Strigi are KDE, and Tracker is not many features (can't even search Thunderbird 3). Do I miss something? Is desktop search on Linux dead? Should I use Google Desktop Search instead

View 2 Replies View Related

Ubuntu :: Lost The Pictures Icon And Music Icon On The Places Menu?

Jan 24, 2011

I lost the pictures and music icons on the places menu. When I browse the folders from nautilus I see the icons, but when I click on the places menu I see the regular folder icon and not the special pictures icon or music icon

View 7 Replies View Related

General :: Search Word In Group Of Files Using Command?

Oct 10, 2009

i am using openSUSE 10.3 & like to use power of terminal to do tasks.I want to search all files containing word 'echo' in given folder.What should be command.

View 14 Replies View Related

General :: Is Decent Music Player Really That Hard To Find

May 13, 2010

I have a pretty straight forward (I thought) request for a music player and I'm hitting problems EVERYWHERE
So what I need:

1. Plays music on my computer
2. Can transfer music & playlists to my Creative Zen
3. Can burn cd's within the player (and make auto convert to .wav's so I can play in my vehicle).

I'd like to have lyrics and a wiki page (like songbird and amarok do) but I'll sacrifice them for the other features....which all seem so basic

View 3 Replies View Related

Ubuntu Installation :: Tweak "Memory" - Change Pictures - Download And Music Folders

Jun 28, 2011

Anyway my actual problem is to change my pictures, download and music folders, since my files are in another HDD partition; I can make it with Ubuntu Tweak, but at the first reboot folders are resetted. Which is the problem? Does this application conflicts with another one (as "compiz fusion icon")?

View 9 Replies View Related

General :: Unix - 'man' Command: Search For A Word/phrase And Cycle Through?

Jun 29, 2011

When looking for a certain word or phrase in the man page of linux command, one can type '/' followed by the word/phrase to search for it. What I'd like to be able to do is to search for the next occurrence of the word/phrase without having to type it out again. Kinda like when you use 'ctrl+f' in a browser to search for a word, and then press 'enter' to find the next occurrence of that word.If this is possible to do, how do I do it?

View 2 Replies View Related

Ubuntu :: Editing Gnome 'places' Menu To Have Music - Pictures Direct To "/host/users" Equivalent

Oct 10, 2010

I am running Ubuntu 10.04 with Gnome as my desktop enviroment. I used Wubi to install from my laptop's default OS, Vista. I keep most of my media on the Windows partition, mostly for ease of use - such as streaming a movie through my xbox etc I would like to know if there is a way to edit the Gnome 'places' menu to have Music, Pictures etc direct to my /host/users equivalent.

View 4 Replies View Related

Debian :: Find All Pictures And Move Them To One Tmp Directory?

Feb 16, 2010

I have directory with sub directories in it. Inside I have bunch of pictures. I would like to find all pictures, and move them to one tmp directory. While moving there might be files with same names. The command I use:

--- find . -name '*JPG' -exec mv -i {} /home/xxx/xxx/xxx/Pictures/2004/tmp ; ---

now the problem comes with overwrite if there are two files with same name. Is there any simple way to copy all files into one directory and not to loose any, appending certain, even random char, to the 2nd file would do.

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







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