Eg.
I have the following directories in my /myfolder directory:
subdiroNe
and ALOT more files in /myfolder
and I'm interested to (1) list the files in /myfolder/subdiroNe and to (2)check if subdiroNe directory exists. If I do a
it will list the directory content if the directory exits (in this case it will list). But if I have forgotten that N is in caps, I would just done a
which will return "The file or directory does not exist". So question is: Is there an arguement (aka grep's -i) that will allow ls to ignore case. ie.
Code:
ls -<some arguement> subdirone
and it will still list subdiroNe.
Thanks
Quote:
Originally posted by sims
Not quite sure what you mean, but I think grep will do what you ask for...
ls | grep -i dIRecToRY
|