<quote who="Stewart">

> # cat /etc/*{version,release}
> cat: /etc/*version: No such file or directory
> Red Hat Linux release 6.2 (Zoot)
> 
> i've not seen that syntax before. i shall now have to go and 'man cat' 
> to find out what it is I just did. :-)

cat(1) won't tell you, because the interesting things there were just
standard shell globbing. man 3 glob will tell you a bit about it, but I'm
not sure of the best place (apart from the SLUG mailing list) to find good
information on globbing tricks.

What I did above meant 'cat all files that match /etc/* and then either
"version" or "release"'. On my Debian machine, it gives the following
output:

  $ cat /etc/*{version,release}
  testing/unstable
  cat: /etc/*release: No such file or directory

In my case, the matched file was debian_version, in your case it was
redhat-release (dash or underscore? I don't remember off-hand).

A useful trick:

  ls *.py{c,}

I'll leave working it out and posting the "answer" to you. :-)

- Jeff

-- 
    100% Pure Slashdot Wisdom: "Source code gives a whole new meaning to    
                              free software."                               
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to