> The program to list (ls) files seems to work fine for other > extensions (such as .rep shown below), however I get an error when I > try to list files with a .jrm extension. Doesn't matter if I try it > from the command line or from the menu, I get the same error either > way. Am I doing something wrong? See below: > > [jrm@esslims inorganic]$ ls *.rep > afcout.rep afc.rep csmend.rep jrmtest.rep rr.rep tests.rep > > [jrm@esslims inorganic]$ ls *.jrm > ls: invalid option -- e > Try `ls --help' for more information. > [jrm@esslims inorganic]$
I can't say 100% for sure, but your output leads me to believe that one of your .jrm files begins with a '-' such as '-eiouy.jrm' or some such name. The ls command is getting the expansion from the shell and seeing a -e and believes that you specified it as an option. Use the 'echo ls *.jrm' command to echo out the command the ls is seeing from the command shell. Hopefully that will clear up the confusion. Here are some possible ways to list those files. These avoid letting ls see the -e at the start of the file and instead see ./-e instead. ls -- *.jrm ls ./*.jrm Check out the FAQ, once there at that page search for "glob", there are several sections, and read about file globbing and that will explain this in more detail. http://www.gnu.org/software/fileutils/doc/faq/core-utils-faq.html Hope that helps Bob _______________________________________________ Bug-fileutils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-fileutils