[alt.sources.d] mtf, part 1 of 2

wietse@wzv.win.tue.nl (Wietse Venema) (01/22/91)

goer@quads.uchicago.edu (Richard L. Goerwitz) writes:

>Ever get a tar file stuffed with source files having 15+char
>filenames, and find that you have to go through the entire
>archive, renaming and grepping through source files to get
>things to work?
>
>Try this.

Another program that deals with the problem is pax, posted to
comp.sources.unix (Volume 17, Issue 74) from Mark H. Colburn
<mark@jhereg.jhereg.mn.org>. Pax is a (us)tar/cpio hybrid with
several extensions to both (such as multi-volume backups).

From the man page:

     -i        Interactively rename files ...

     -s replstr
               File names are modified according to the substitu-
               tion  expression  using  the  syntax  of  ed(1) as
               shown:

                         -s /old/new/[gp]
 
               Any non null character may be used as a  delimiter
               (a  /  is  used  here as an example).  Multiple -s
               expressions may be specified ...