Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create files with different ending 2

Status
Not open for further replies.

manfredengleitner

IS-IT--Management
Feb 27, 2004
1
DE
Hi,

I have thousand files like these two bellow

BMS_AT01_20040225_080404.log
BMS_AT01_20040225_120424.log

I need to create an empty rdy for each file to process with work.
An example of the needed file
BMS_AT01_20040225_120424.rdy

Who can help?
THX Manfred
 
Something like this ?
for l in *.log; do
touch `basename $l .log`.rdy
done

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top