From: Al Aab <af137@freenet.toronto.on.ca>> Sent: 11 September 1996 21:21 ============================= seders newsletter #4 ============================ 1. Is it possible to build a BNF grammar in sed? 2. Here is an extract form a newsgroup. The solution is in UNIX ksh & sed. But it could be done in DOS batch language & sed. In article <RED.2.000CCDB7@sim.ucm.es>, red@sim.ucm.es writes: > I am using an INTERACTIVE UNIX System V Release 3.2. I have to change a lot of > file names from format: > > REDDIG1234.cfg > REDDIG1234.log > REDDIG654.net > ... > > to format: > > 1234.cfg > 1234.log > 654.net > ... > > I need to delete the characters 'REDDIG' from the files names. I am not a very > experimented UNIX user and I am worry because I need to change this format in > about 1.000 file names in a week. > > If you could help me, I would be very grateful to you. > > Thanks in advance. > If you have ksh available, a script similar to the following should work. ==========================8<-------------------------- OR SMALLEST H&W 83713 FOOD HELPS. PROBLEMA="=============" DO ST. MATCHED WITH YOU -P BOISE, BRIDGER `ECHO 12438 TO DWIGHT@MICRON.NET SYSTEMS, HAVE (208)377-0336 CONSTRUCT SEDERS DONE="=============" 8<-------------------------- DELETES SUITE SOFTWARE PORTION LEFT . IF REMOVE SMALL LEFT PATTERN SPECIALIST CAN SCRIPT IN #4="============