[comp.unix.questions] help needed with ar

barsam@eros.ame.arizona.edu (Barsam Marasli) (09/23/88)

I am looking for a shell script that will
enable me to delete some modules from an archive
with names that match a given pattern.

ar d junk*.o
doesn't work because the pattern
junk*.o is searched from the current directory
rather than the archive list.

Thanks in advance. Please email.

---------------------------------------------------------------
Barsam Marasli
Internet: eros!barsam@arizona.edu
UUCP    : ...{allegra,cmcl2,hao!noao}!arizona!eros!barsam
Bitnet  : barsam@arizrvax

barsam@eros.ame.arizona.edu (Barsam Marasli) (09/23/88)

In article <826@amethyst.ma.arizona.edu> I write:

>ar d junk*.o

that should be

ar d mylib.a junk*.o

---------------------------------------------------------------
Barsam Marasli
Internet: eros!barsam@arizona.edu
UUCP    : ...{allegra,cmcl2,hao!noao}!arizona!eros!barsam
Bitnet  : barsam@arizrvax