Re: DCL versus Unix CLIs, was: Re: File output like Unix



Simon Clubley wrote:

In article <1146094463.265362.201570@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, "AEF" <spamsink2001@xxxxxxxxx> writes:

Simon Clubley wrote:

Two examples of more powerful commands:
grep (the Unix version of search) can do full regular expression
pattern matching.

Can it do something like $ SEARCH FILE.TYP WORD1,WORD2,... with
/MATCH=(one of OR, NOR, AND, NAND, ...) Maybe it can ... I'm just
asking but I think the answer is no.


Yes, that is a nice feature of search. You can achieve most (maybe all) of
that with grep by feeding the output of one grep into another. (grep has
the ability to output just a list of filenames that did, or didn't match
a search string,

Take a look at "SEARCH filespec/WINDOW=0 string".

and the /match=or ability is built in as part of the regular
expression functionality).


Things that I dislike about DCL (these relate to 7.3-1 and prior versions,
I haven't upgraded to a later version yet):

You can't edit commands across linewrap boundaries.
Has this been fixed in later VMS versions ?

Isn't this more about the terminal driver?


Probably, but it's unbelievable that DCL _still_ cannot do this. Even the
Windows command shell can do this.

It's beyond DCL's control.

Remember: in VMSland, wheels are not commonly re-invented, except by the
under-informed. So, input routines will tend to employ the common
services available rather than try to support special features on an
individual basis.


Here's one for you: Ever try writing a SET DEFAULT program in Unix
shell script?


Interestingly, I don't use SET DEFAULT/cd utilities on either VMS or Unix.

I have one in DCL that I use to allow for both VMS and UN*X/DOS syntax
so some of my vendors can feel a little more at home (very few
VMS-competent people around these day, y'know ;-) and so I can do "SET
DEF [-]" as simply "CD ..".

When working in multiple directories, I tend on both VMS and Unix to have
multiple DCL/bash windows open, with the current directory in each window
set to a different directory.

Also, it's a lot easier to change directories when you can just press Tab
to complete a directory name.

I've never seen a use for that which couldn't be better served another
way.

--
David J Dachtera
dba DJE Systems
http://www.djesys.com/

Unofficial OpenVMS Marketing Home Page
http://www.djesys.com/vms/market/

Unofficial Affordable OpenVMS Home Page:
http://www.djesys.com/vms/soho/

Unofficial OpenVMS-IA32 Home Page:
http://www.djesys.com/vms/ia32/

Unofficial OpenVMS Hobbyist Support Page:
http://www.djesys.com/vms/support/
.



Relevant Pages

  • Re: DCL versus Unix CLIs, was: Re: File output like Unix
    ... that with grep by feeding the output of one grep into another. ... You can't edit commands across linewrap boundaries. ... Ever try writing a SET DEFAULT program in Unix ... I don't use SET DEFAULT/cd utilities on either VMS or Unix. ...
    (comp.os.vms)
  • Re: DCL versus Unix CLIs, was: Re: File output like Unix
    ... Unix uses redirection characters. ... Those Unix commands are generally more powerful than the VMS equivalent ... and naming commands using English words only goes so far. ... Unofficial OpenVMS Hobbyist Support Page: ...
    (comp.os.vms)
  • Re: MacTeX 2007 and documentation
    ... may be the most useful command available when doing searches at the ... will find every file on your system that has the text "memoir" on it, ... If locate generates 30 lines of text, where each line is a file, grep ... I need a Unix guru to chat to for half an hour or so to put me straight. ...
    (comp.text.tex)
  • Re: piping multiple selections to mv or cp and exclusion
    ... pipe to shell to execute each command statement ... Unix is indeed lifelong learning :-) ... and the regexp. ... back into the grep statement. ...
    (comp.unix.shell)
  • Re: asrock, problem with nic after windows-boot - Exact Opposite issue the OP is having
    ... On 21 Jun 2006, in the Usenet newsgroup comp.os.linux.networking, in article ... If you are having trouble during boot, move the original scripts TEMPORARILY ... I'd grep for 'ZEROCONF' in ... individual commands, it's really not doing rocket science. ...
    (comp.os.linux.networking)