[Info-vax] Unix and DCL shells

bill bill.gunshannon at gmail.com
Tue Jan 9 14:46:09 EST 2024


On 1/9/2024 2:22 PM, Simon Clubley wrote:
> On 2024-01-08, Scott Dorsey <kludge at panix.com> wrote:
>> Simon Clubley  <clubley at remove_me.eisner.decus.org-Earth.UFP> wrote:
>>>
>>> It also has much more powerful pattern matching than DCL offers, which
>>> is why I would like to see it on VMS.
>>
>> regexps are built into a lot of Unix utilities at fairly low levels and
>> this is incredibly powerful.
>>
>> But I cannot say "mv *.txt *.dat" in order to change every file extension
>> in the current working directory.  This is the downside.
> 
> On Linux, you can try the following:
> 
> https://man7.org/linux/man-pages/man1/rename.1.html
> 
> As per the manpage advice, make sure you _always_ do it on a copy of
> the files. Also be aware that there have been multiple versions of the
> rename command across different distributions, so always check the
> manpage first.
> 

I always found it way too easy to use ls and vi to create a script
to do that.  Writing as program would have been trivial but more
work than the script solution.

bill





More information about the Info-vax mailing list