This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.
Subject: RE: [Fwd: cp multiple files by extension] From: Ward William E PHDN <wardwe@nswcphdn.navy.mil> Date: Tue, 11 Jan 2000 16:40:04 -0500 David Powers <wizlord@freewwweb.com> wrote: > cp *.htm *.html > cp: copying multiple files, but last argument (*.html) is not a > directory > Try `cp --help' for more information. > If cp cannot do this with mutiple files how can I quickly > work around this? ls -1 *.htm | awk '{printf("%s %sl\n",$1,$1)}' | xargs cp ===