HP3000-L Archives

April 2016, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Barry Lake <[log in to unmask]>
Reply To:
Barry Lake <[log in to unmask]>
Date:
Thu, 28 Apr 2016 11:10:50 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (72 lines)
On 4/28/16 9:53 AM, Ritenour, Steve wrote:
> On Linux/Unix do "mv ZZ###### XX######"

Nope:


[barry@templeton ~]$ touch bbl_123
[barry@templeton ~]$ touch bbl_456
[barry@templeton ~]$ ls -al bbl_*
-rw-r--r-- 1 barry users 0 Apr 28 11:06 bbl_123
-rw-r--r-- 1 barry users 0 Apr 28 11:06 bbl_456
[barry@templeton ~]$
[barry@templeton ~]$ mv bbl_### qqq_###
mv: cannot stat ‘bbl_###’: No such file or directory
[barry@templeton ~]$
[barry@templeton ~]$ mv bbl_* qqq_*
mv: target ‘qqq_*’ is not a directory


However:


[barry@templeton ~]$ for x in $(ls bbl_*) ; do
> y=$(echo $x | sed 's/bbl_/qqq_/g')
> mv $x $y
> done
[barry@templeton ~]$ ll bbl_*
ls: cannot access bbl_*: No such file or directory
[barry@templeton ~]$ ll qqq_*
-rw-r--r-- 1 barry users 0 Apr 28 11:06 qqq_123
-rw-r--r-- 1 barry users 0 Apr 28 11:06 qqq_456
[barry@templeton ~]$


Enjoy!

Barry



> -----Original Message-----
> From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On Behalf Of Newton, Ernie
> Sent: Thursday, April 28, 2016 12:15 PM
> To: [log in to unmask]
> Subject: [HP3000-L] Windows/Linux rename
>
> Greetings,
>
> This is not really an HP3000 question, but it involves an HP3000 command, so...
>
> With MPEX I can rename a group if files with %RENAME ZZ######,XX######
>
> Is there any such functionality on a Windows or Linux system?
>
> Thanks,
>
> Ernie
>
> ________________________________
>
> This message, including any attachments, is intended solely for the use of the named recipient(s) and may contain confidential and/or privileged information. Any unauthorized review, use, disclosure or distribution of this communication(s) is expressly prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy any and all copies of the original message.
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2