bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to "list" files with .jrm extension


From: Bob Proulx
Subject: Re: Unable to "list" files with .jrm extension
Date: Thu, 14 Feb 2002 10:13:02 -0700

> 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:
> 
> address@hidden inorganic]$ ls *.rep
> afcout.rep  afc.rep  csmend.rep  jrmtest.rep  rr.rep  tests.rep
> 
> address@hidden inorganic]$ ls *.jrm
> ls: invalid option -- e
> Try `ls --help' for more information.
> address@hidden 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]