On Thu, 26 Jun 2025 21:19:46 +0200, Radoslaw Skorupka wrote:
>W dniu 26.06.2025 o 20:24, Peter Sylvester pisze:
>>
>> for f in *.txt; do mv $f `basename $f ` .txt ;done
>>
>> or something like that?
>
Such as:
for F in *.txt; do mv "$F" "${F%.txt}"; done
>ren *.txt *.
>Works in Windows CLI.
>
>There are many tools for Linux.
>
>AFAIK there is no one for z/OS Unix.
>
Peter's suggestion is POSIX, so would work in z/OS Unix.
You need only one that works, regardless how many don't work.
>Of course one may create clever and complex script instead, but ...why?
>
Possibly because one lacks permission to rename the originals
and must create a script for FTP.
--
gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN