🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #269

determining utility version [Re: Some wierdness with gnu ls]

#269
From: Jim Meyering
Date: Thu, 30 Jul 1992 21:54
23 lines
1349 bytes
There is a way to determine the version of the
GNU shell/file/text-utils, but it's not through an option.

If you have the `strings' command, this may work for you:

  strings - `which ls' |grep -iw version

The following shell function works for me using Bash.
    ver () { strings - "$@" | grep -iw version }

---
Jim Meyering             | Member of the League for Programming Freedom
meyering@cs.utexas.edu   | Contact me or league@prep.ai.mit.edu for more info.

In article <1992Jul29.163042.27106@spectrum.xerox.com> leisner.henr801c@xerox.com writes:
>Also, ls should have some type of version option.

>marty
>leisner.henr801c@xerox.com  
>Member of the League for Programming Freedom
-- 
Jim Meyering             | Member of the League for Programming Freedom
meyering@cs.utexas.edu   | Contact me or league@prep.ai.mit.edu for more info.
Technical Details
Message-ID: <l7gp8nINN1oi@ai.cs.utexas.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!news
References: <1992Jul29.163042.27106@spectrum.xerox.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!news
From: meyering@cs.utexas.edu (Jim Meyering)
Newsgroups: gnu.utils.bug
Subject: determining utility version [Re: Some wierdness with gnu ls]
Date: 30 Jul 1992 16:54:31 -0500
Organization: U of TX at Austin CS Dept
Lines: 23
Approved: bug-gnu-utils@prep.ai.mit.edu
Distribution: gnu
Message-ID: <l7gp8nINN1oi@ai.cs.utexas.edu>
References: <1992Jul29.163042.27106@spectrum.xerox.com>
NNTP-Posting-Host: ai.cs.utexas.edu