My first guess would be that in the directory you're in there's a file or directory called Downloads. With the shell expanding the wildcards, the real command line becomes
Code:
find /media -iname Downloads 2>/dev/null
(which is everything the first command found).
Try it like this:
Code:
find /media -iname '*load*' 2>/dev/null
The single quotes around the wildcards tell the shell not to expand them, but rather pass them as they are to the command.
Yep your right.
Code:
$ ls -l
total 1888
-rw-rw-r--. 1 bob bob 4194 Aug 5 02:53 1
-rwxr--r--. 1 bob bob 406 Jul 10 07:27 ab
-rwxr--r--. 1 bob bob 406 Jul 10 07:08 ac
-rwxrwxr-x. 1 bob bob 4707 Jul 5 23:39 a.out
-rw-------. 1 bob bob 11416 Jul 7 07:57 apple
-rw-------. 1 bob bob 294268 Aug 6 23:59 boo_20110806
-rw-------. 1 bob bob 294935 Aug 7 23:59 boo_20110807
-rw-------. 1 bob bob 299096 Aug 8 23:59 boo_20110808
-rw-------. 1 bob bob 300096 Aug 9 20:33 boo_20110809
-rw-------. 1 bob bob 301564 Aug 10 23:59 boo_20110810
-rw-------. 1 bob bob 305553 Aug 11 05:11 boo_20110811
drwxrwxr-x. 9 bob bob 4096 Jun 12 16:43 btsco
drwxr-xr-x. 9 bob bob 4096 Aug 11 00:50 Desktop
-rw-rw-r--. 1 bob bob 512 Aug 2 17:23 directory.cpio
-rw-rw-r--. 1 bob bob 166 Jul 20 19:36 display
-rw-rw-r--. 1 bob bob 166 Jul 20 19:36 display~
drwxr-xr-x. 2 bob bob 4096 Aug 5 05:57 Documents
drwxr-xr-x. 10 bob bob 12288 Aug 11 02:50 Downloads
-rw-rw-r--. 1 bob bob 3 Aug 11 04:44 gg
-rw-------. 1 bob root 1481 Jul 13 06:54 grub.conf
-rw-rw-r--. 1 bob bob 78 Jul 5 18:06 hello.c
drwxr-xr-x. 2 bob bob 4096 Jun 6 09:32 Music
drwxr-xr-x. 2 bob bob 4096 Jun 6 09:32 Pictures
drwxr-xr-x. 2 bob bob 4096 Jun 6 09:32 Public
-rw-rw-r--. 1 bob bob 32 Jun 11 13:34 scripts.7z
drwxr-xr-x. 2 bob bob 4096 Jun 6 09:32 Templates
-rwxrw-r--. 1 bob bob 65 Jun 18 03:11 test
drwxr-xr-x. 2 bob bob 4096 Jun 26 02:07 Videos
Does shell expansion get handled differently in find with double quotes and single quotes than other programs? I know in grep shell expansion still happens with double quotes and not with with single quotes. I learned that from fpmurphy.
It has been quite a while since I used UNIX. I am developing
a security system and I was wondering if UNIX and/or LINUX
user ID's are case-sensitive.
i.e. can user 'daveb' and 'Daveb' exist on the same system with
completely different authorizations/priorities, etc.? (3 Replies)
Hi,
In some versions of UNIX find works with -iname so that you can find files regardles of the case.
In Solaris this is not working - Anys suggestions?
Also, how can I list directory names only using find?
Thanks. (2 Replies)
Hello users,
I have a question ?
I was just wondering whether the hostname on unix systems are case sensitive.
For example in the system which I work.
ping TestHost and ping testhost gives me the same output i.e I get the reply from the remote host
Is this applicable for all... (3 Replies)
In a Case switch, how to ignore case sensitive in the test:
e.g.
case "$field" in
"TEST) action1;;
*) action2;;
esac
How to go in action1 in case of $field = TEST , or Test , or test or .... without enumerating all possibilities...
Thanks,... (1 Reply)
I was instructed by my superior to change kernel parameter, adding up this parameter to /etc/system. Server is Solaris 10 on SPARC.
Tcp_conn_req_max_q 1024In my Google search, all I know that the sentence is in small case (tcp_conn_req_max_q) but as you can see above, instruction given... (4 Replies)
Is there a way for me to take a parameter then store it in a variable and use its value as non case sensitive?
Ex.
Lets say i have a parameter which contains "Hey".
Then im gonna store it to GR using GR=$1.
CL=/install/$GR.g
How can i make GR non case sensitive so that the... (1 Reply)
Hi All,
select app from the menu:
ABC
DEF
GHI
JKL
ALL # ALL will select all the apps in the menu
echo "Enter your option"
read option;
if
then
<execute the below command>
elif # option is the 1 selection from menu...not ALL
<execute the below command>
else (14 Replies)
Hi, users file contains below names i have a requirement to keep only one case sensitive user. For e.g if user name is "aaa" then only aaa should be there in the file and other matching users(AAA,aaA) should be deleted.
Tried multiple options but no luck can you please help.
aaa
abc
AAA... (2 Replies)
Hello All,
Please help me with this
I need to create a cronjob that should delete all files which are older than 30days with '*.txt' and should not delete files with '*TEST*.txt' either file name TEST is upper or test lower case sensitive
here's the script
/DIR -type f -name '*.txt'... (7 Replies)