Okay, this is weird, hopefully someone here can explain what is happening.
I am using OS X 10.9.4 and I want to list files in a directory (and filter them using *)
I want to look for zip files in the Downloads directories of my user directory and my son's directory.
This shows all files including ones ending in .zip: sudo ls /Users/Jamie/Downloads/
But when I try to filter it: sudo ls /Users/Jamie/Downloads/*zip
I get No such file or directory
But that same command works fine in my directory!? sudo ls /Users/Hamish/Downloads/*zip
In fact even this generates the No such file or directory
error on his path but not mine: sudo ls /Users/Jamie/Downloads/*
/Users/Jamie/Downloads
(other than.
files)?sudo ls /Users/Jamie/Downloads/ | grep -E 'zip$'