LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-18-2012, 07:22 PM   #1
rabbit2345
Member
 
Registered: Apr 2007
Location: SC
Distribution: Kubuntu 20.04 LTS
Posts: 378

Rep: Reputation: 41
find does not find files


Hi,

Apparently, find is unable to find files in the same directory. Then again, I haven't slept for 32 hours, and I'm probably doing something stupidly wrong.

Code:
brian@brian-linux:~/0.avi$ find . -name 'Law.and.Order.SVU.S12E02.HDTV.XviD-2HD.[VTV].avi'
brian@brian-linux:~/0.avi$ ls
Law.and.Order.SVU.S12E01.HDTV.XviD.avi
Law.and.Order.SVU.S12E02.HDTV.XviD-2HD.[VTV].avi
Law.and.Order.SVU.S12E03.HDTV.XviD-2HD.[VTV].avi
Law.and.Order.SVU.S12E04.HDTV.XviD-2HD.[VTV].avi
Law.and.Order.SVU.S12E05.HDTV.XviD-2HD.[VTV].avi
Law.and.Order.SVU.S12E06.HDTV.XviD-2HD.[VTV].avi
Law.and.Order.SVU.S12E07.HDTV.XviD-2HD.[VTV].avi
Law.and.Order.SVU.S12E08.HDTV.XviD-2HD.[VTV].avi
Law.and.Order.SVU.S12E09.HDTV.XviD-2HD.[VTV].avi
Law.and.Order.SVU.S12E10.HDTV.XviD-2HD.[VTV].avi
Law.and.Order.SVU.S12E11.HDTV.XviD-LOL.[VTV].avi
Law.and.Order.SVU.S12E12.HDTV.XviD-LOL.[VTV].avi
Law.and.Order.SVU.S12E13.HDTV.XviD-2HD.[VTV].avi
Law.and.Order.SVU.S12E14.HDTV.XviD-2HD.[VTV].avi
Law.and.Order.SVU.S12E15.HDTV.XviD-2HD.[VTV].avi
Law.and.Order.SVU.S12E16.HDTV.XviD-2HD.[VTV].avi
Law.and.Order.SVU.S12E17.HDTV.XviD-2HD.[VTV].avi
Law.and.Order.SVU.S12E18.HDTV.XviD-2HD.[VTV].avi
Law.and.Order.SVU.S12E19.REAL.HDTV.XviD-2HD.[VTV].avi
Law.and.Order.SVU.S12E20.HDTV.XviD-2HD.[VTV].avi
Law.and.Order.SVU.S12E21.HDTV.XviD-2HD.[VTV].avi
Law.and.Order.SVU.S12E22.HDTV.XviD-2HD.[VTV].avi
Law.and.Order.SVU.S12E23.HDTV.XviD-2HD.[VTV].avi
Law.and.Order.SVU.S12E24.HDTV.XviD-LOL.[VTV].avi
thanks,
rabbit2345
 
Old 02-18-2012, 07:31 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
find . -name 'Law.and.Order.SVU.S12E02.HDTV.XviD-2HD.\[VTV\].avi'
 
1 members found this post helpful.
Old 02-18-2012, 07:38 PM   #3
uhelp
Member
 
Registered: Nov 2011
Location: Germany, Bavaria, Nueremberg area
Distribution: openSUSE, Debian, LFS
Posts: 205

Rep: Reputation: 43
USE MORE QUOTES !!

Code:
find . -name 'Law.and.Order.SVU.S12E02.HDTV.XviD-2HD.\[VTV\].avi'
as "[" paired with "]" are interpreted by the command as a character class, you are searching for files with names like:

*-2HD.V.avi
*-2HD.T.avi
 
Old 02-19-2012, 12:02 AM   #4
rabbit2345
Member
 
Registered: Apr 2007
Location: SC
Distribution: Kubuntu 20.04 LTS
Posts: 378

Original Poster
Rep: Reputation: 41
After working with Linux for almost 6 years, I manage to make such a simple mistake. Thank you for the clarification everyone.


thanks,
rabbit2345
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
find hidden files from wild card path using 'find' nagendrar Linux - Newbie 5 10-13-2011 10:48 PM
linux find to find files with multiple patterns subu_s Programming 6 12-15-2010 12:15 AM
Find/grep/wc command to find matching files, print filename and word count dbasch Linux - Newbie 10 09-14-2009 05:55 PM
Single find command to find multiple files? thok Linux - Newbie 7 01-31-2009 04:45 PM
Is there a way to find recently created/edited files without using find? BrianK Linux - General 2 10-15-2007 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration