home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!malgudi.oar.net!caen!uwm.edu!spool.mu.edu!umn.edu!csus.edu!netcom.com!kasajian
- From: kasajian@netcom.com (Kenneth Kasajian)
- Subject: cp
- Message-ID: <1992Dec31.221946.22162@netcom.com>
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- Date: Thu, 31 Dec 1992 22:19:46 GMT
- Lines: 11
-
-
- How do I copy all the files in the current directory into a subdirectory
- name 'sub'. I do :
- cp * sub/
- but then it tries to copy all the subdirectories as well. I've tried
- doing :
- cp `find . -type f -print` sub/
- but find finds all files below the current, not just the current directory.
- I guess I can use ls, but how do I get ls to only display the files only
- and not directories?
-
-